Re: [BUG] - "git commit --amend" commits, when exiting the editor with no changes written
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 3, 2010, 09:04 UTC
- Message-ID
- <alpine.DEB.1.00.1002031003250.3099@intel-tinevez-2-302>
- In-Reply-To
- <76c5b8581002021609i4c05d039k35979757fbb74676@mail.gmail.com>
Hi,
On Tue, 2 Feb 2010, Eugene Sajine wrote:
Show 7 quoted lines
> > Sorry, your "if message was not saved, abort" is so out of line with > > any program I use that this would be highly confusing (maybe > > "complicated" was the wrong choice of words). > > Frankly, i think it is in line with "git commit" and that's the only > thing that matters here as I have no idea what programs you're talking > about.
It's not. 'git commit' will abort if you delete all _and save_. So it is not the saving part, it is the deleting all part. And that's exactly how rebase -i works, or add -e: if you delete all and save, it aborts.
Ciao, Dscho