Re: Query on git commit amend
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 6, 2011, 20:03 UTC
- Message-ID
- <7vobvlfowk.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <87fwgxwvn9.fsf@gmail.com>
Vijay Lakshminarayanan <laksvij@gmail.com> writes:
Show 5 quoted lines
> I've found > > $ GIT_EDITOR=cat git commit --amend > > useful.
Are you sure it is a cat?
I almost always use
$ EDITOR=: git commit --amend
when rewriting the contents without updating the message, but I think we should allow people to say:
$ git commit --amend --no-edit
which is accepted from the command line but is not honoured.