From: Junio C Hamano Date: Wed, 05 Oct 2011 21:55:35 GMT Subject: Re: git-cherry-pick and git-commit --amend in version 1.7.6.4 Message-ID: <7vpqib5ciw.fsf@alter.siamese.dyndns.org> In-Reply-To: Jay Soffian writes: > On Wed, Oct 5, 2011 at 1:40 PM, Junio C Hamano wrote: >> 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.