Re: [BUG] - "git commit --amend" commits, when exiting the editor with no changes written
- From
Jeff King <peff@peff.net>
- Date
- Feb 3, 2010, 10:15 UTC
- Message-ID
- <20100203101509.GA25336@coredump.intra.peff.net>
- In-Reply-To
- <20100203093150.GA23956@coredump.intra.peff.net>
On Wed, Feb 03, 2010 at 04:31:50AM -0500, Jeff King wrote:
> > Or, he can set his $EDITOR to a script that checks the mtime. > > Agreed. It could even look like this:
Also, while we are talking about editor-specific hacks, if you are using vim you can use ":cq" to exit with an error code.
-Peff