]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/rebase.c
rebase --abort: improve reflog message
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Wed, 12 Oct 2022 09:35:11 +0000 (09:35 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2022 19:55:03 +0000 (12:55 -0700)
commit6159e7add493cf1d62b4817eb86ac8890e768c17
treeb520c6057f8a53256737c6375e528d333ebb1fdc
parentbe0d29d301ffe284b123247d6680b289f73924a4
rebase --abort: improve reflog message

When aborting a rebase the reflog message looks like

rebase (abort): updating HEAD

which is not very informative. Improve the message by mentioning the
branch that we are returning to as we do at the end of a successful
rebase so it looks like.

rebase (abort): returning to refs/heads/topic

If GIT_REFLOG_ACTION is set in the environment we no longer omit
"(abort)" from the reflog message. We don't omit "(start)" and
"(finish)" when starting and finishing a rebase in that case so we
shouldn't omit "(abort)".

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
t/t3406-rebase-message.sh