]> git.ipfire.org Git - thirdparty/git.git/commit
commit: remove irrelavent prompt on `--allow-empty-message`
authorHu Jialun <hujialun@comp.nus.edu.sg>
Fri, 9 Jul 2021 18:07:32 +0000 (02:07 +0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Jul 2021 19:08:18 +0000 (12:08 -0700)
commit6f70f00b4f94c036767cbe0f4cd23db573a4e8ba
tree0f261220ea7f1e0b2d8866d94c158b2efbd5da1e
parent54ba2f1862df7144eb3a8b192d992b520bdc3743
commit: remove irrelavent prompt on `--allow-empty-message`

Even when the `--allow-empty-message` option is given, "git commit"
offers an interactive editor session with prefilled message that says
the commit will be aborted if the buffer is emptied, which is wrong.

Remove the "an empty message aborts" part from the message when the
option is given to fix it.

Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Helped-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Hu Jialun <hujialun@comp.nus.edu.sg>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
t/t7500-commit-template-squash-signoff.sh