This should be clearer with Git 2.39 (Q4 2022):
See commit 9a1925b, commit 6159e7a, commit be0d29d, commit 33f2b61, commit 1f2d5dc, commit da1d633, commit 4e5e1b4, commit 57a1498 (12 Oct 2022) by Phillip Wood (phillipwood
).
See commit a524c62 (17 Oct 2022) by Junio C Hamano (gitster
).
(Merged by Taylor Blau -- ttaylorr
-- in commit 8851c4b, 30 Oct 2022)
Signed-off-by: Phillip Wood
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)".
So git reflog
should be of better help in your case, starting with Git 2.39 (Q4 2022).
Also, still with Git 2.39 (Q4 2022), avoid setting GIT_REFLOG_ACTION
to improve readability of the sequencer internals.
See commit 0e34efb, commit d188a60 (09 Nov 2022) by Phillip Wood (phillipwood
).
(Merged by Junio C Hamano -- gitster
-- in commit ff84d03, 23 Nov 2022)
rebase
: stop exporting GIT_REFLOG_ACTION
Signed-off-by: Phillip Wood
Reviewed-by: Ævar Arnfjörð Bjarmason
Signed-off-by: Taylor Blau
Now that struct replay_opts
has a reflog_action
member we no longer need to export GIT_REFLOG_ACTION
when starting a rebase.
If the user has set GIT_REFLOG_ACTION
then we use it when initializing reflog_action
.