Thread (4 messages) flat view 4 messages, 3 authors, 2017-02-04

Re: [PATCH v2] reset: add an example of how to split a commit into two

From: Duy Nguyen <hidden>
Date: 2017-02-04 12:37:26

On Sat, Feb 4, 2017 at 7:16 PM, Philip Oakley [off-list ref] wrote:
From: "Duy Nguyen" <redacted>
quoted
On Sat, Feb 4, 2017 at 3:28 AM, Jacob Keller [off-list ref]
wrote:
quoted
+------------
+$ git reset HEAD^                           <1>

It may be a good idea to add -N here, so that 'add -p' can pick up the
new files if they are added in HEAD.

When looking at the man page for `reset` [1] it implies that `-N` requires
`--mixed` also to be given. Is that correct?
Yes. But since --mixed is the default mode, "reset -N" equals "reset --mixed -N"
Or could the man page be clearer?
If someone makes questions, I guess the answer is yes it should be made clearer.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help