Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Nov 30, 2006, 16:05 UTC
- Message-ID
- <ekmvc6$inf$1@sea.gmane.org>
- In-Reply-To
- <m2odqpm0d6.fsf@ziti.fhcrc.org>
Seth Falcon wrote:
> Jakub Narebski <jnareb@gmail.com> writes:
Show 6 quoted lines
>> By the way, I think that git-commit should also watch the return code >> from the editor, so you can ^C it to abort git-commit --amend. > > For those using emacsclient, I don't think ^C will work. Is there > another way to undo an amended commit? If not, is there any sense in > detecting a magic comment to abort the ammend commit?
You can ^C the git-commit invocation.
And I guess ORIG_HEAD would help, and reflog certainly would help reverting (undoing) amend of a commit.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git