]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/commit.c
commit: honour --no-edit
authorJunio C Hamano <gitster@pobox.com>
Tue, 6 Dec 2011 21:09:55 +0000 (13:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Dec 2011 23:25:30 +0000 (15:25 -0800)
commitca1ba2010215acb305c7b5d9707e117b862067eb
tree8dae6b6d573eda671edcedb18abf4ac83d103a87
parent1af524eba1367a56c02d0e2d6e6d26a1d25ac485
commit: honour --no-edit

After making fixes to the contents to be committed, it is not unusual to
update the current commit without rewording the message. Idioms to tell
"commit --amend" that we do not need an editor have been:

    $ EDITOR=: git commit --amend
    $ git commit --amend -C HEAD

but that was only because a more natural "--no-edit" option in

    $ git commit --amend --no-edit

was not honoured.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c