Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".

3 messages, 3 authors, 2016-08-11 · open the first message on its own page

Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".

From: Seth Falcon <hidden>
Date: 2016-08-11 20:21:23

Jakub Narebski [off-list ref] writes:
Salikh Zakirov wrote:
quoted
Someone said, that default '-a' does not go well with 'git-commit --amend',
and I second that. It was somewhat suprising to see that 'git commit --amend'
is going to include all of the dirty state into the commit,
and since there is no easy way to abort a --amend commit (because the comment
buffer wasn't empty, and :q! does not work as it would on the regular commit),
I had to untwine the changes manually.
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 undu an ammend commit?  If not, is there any sense in

Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-08-11 20:13:52

On 11/30/06, Seth Falcon [off-list ref] wrote:
For those using emacsclient, I don't think ^C will work.  Is there
another way to undu an ammend commit?  If not, is there any sense in
detecting a magic comment to abort the ammend commit?
Uncomment to abort commit would be more intuitive.

-- 

Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".

From: Jakub Narebski <hidden>
Date: 2016-08-11 20:20:02

Seth Falcon wrote:
Jakub Narebski [off-list ref] writes:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help