Re: git-cherry-pick and git-commit --amend in version 1.7.6.4
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 5, 2011, 21:55 UTC
- Message-ID
- <7vpqib5ciw.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CAG+J_Dyn3kk7SfNZzxjoD-hK9jBQr2igmOqJojeYNHLubtSY=w@mail.gmail.com>
Jay Soffian <jaysoffian@gmail.com> writes:
Show 7 quoted lines
> On Wed, Oct 5, 2011 at 1:40 PM, Junio C Hamano <gitster@pobox.com> 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.