]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/rebase.c
rebase: fix GIT_REFLOG_ACTION regression
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 29 Nov 2018 19:09:21 +0000 (11:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Nov 2018 04:49:20 +0000 (13:49 +0900)
commit13a5a9f0fdcf36270dcc2dcb7752c281bbea06f1
tree2700447a42ead46b95d3bb849ab4db8944296f75
parent7068cbc4abac53d9c3675dfba81c1e97d25e8eeb
rebase: fix GIT_REFLOG_ACTION regression

The scripted version of "rebase" honored the `GIT_REFLOG_ACTION`,
and some automation scripts expected the reflog entries to be
prefixed with "rebase -i", not "rebase", after running "rebase -i".
This regressed in the reimplementation in C.

Fix that, and add a regression test, both with `GIT_REFLOG_ACTION`
set and unset.

Note: the reflog message for "rebase finished" did *not* honor
GIT_REFLOG_ACTION, and as we are very late in the v2.20.0-rcN phase,
we leave that bug for later (as it seems that that bug has been with
us from the very beginning).

Reported by Ian Jackson.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
t/t3406-rebase-message.sh