[BUG] - "git commit --amend" commits, when exiting the editor with no changes written
- From
- Eugene Sajine <euguess@gmail.com>
- Date
- Feb 2, 2010, 20:07 UTC
- Message-ID
- <76c5b8581002021207y3eccdc19i9a4abcc3d04315f0@mail.gmail.com>
Hi,
It seems to me it is a bug:
When git commit --amend is executed it fires up vi so i can change the commit message. If I have something staged, then when I'm exiting vi using :q (without doing/writing any changes), it still commits everything staged with old message.
I believe it should actually abort amending and return to the state before the "git commit --amend" was issued.
Thanks, Eugene