Thread (83 messages) 83 messages, 9 authors, 2019-06-13

Re: [PATCH v1 07/11] restore: default to --source=HEAD when only --index is specified

From: Elijah Newren <hidden>
Date: 2019-03-09 18:58:57

On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy [off-list ref] wrote:
"git restore --index" does not make much sense since we're told to
restore the index from the (by default) index. Set default source to
HEAD in this case. This is basically the same as "git reset -- <paths>".
Can I suggest a slight rewording to the commit message?

"git restore --index" without --source does not make much sense since by
default we restore from the index.  Instead of copying the index to
itself, set the default source to HEAD in this case, yielding behavior
that matches "git reset -- <paths>".


The rest looks good to me.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help