Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: git-cherry-pick and git-commit --amend in version 1.7.6.4

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:11

Jay Soffian [off-list ref] writes:
On Wed, Oct 5, 2011 at 1:40 PM, Junio C Hamano [off-list ref] wrote:
quoted
Pinging Jay who may have know a thing or two from the history leading to
37f7a85 (Teach commit about CHERRY_PICK_HEAD, 2011-02-19).
Yep, I replied to Nicolas' other message.

j.
This is probably different fro Nicolas's use case, but you can easily
trigger:

 $ edit foo.c
 $ EDITOR=: git commit --amend ;# forget to add foo.c
 $ git cherry-pick other
 error: Your local changes to the following files would be overwritten by
 merge:
        foo.c
 Please, commit your changes or stash them before you can merge.
 Aborting
 $ EDITOR=: git commit --amend foo.c
 fatal: You are in the middle of a cherry-pick -- cannot amend.

I think the sequencer state needs to be removed when the command aborts.

This needs to be fixed before 1.7.7.1.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help