Skip to content

Commit c1fb559

Browse files
committed
sequencer (rebase -i): set the reflog message consistently
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 815f534 commit c1fb559

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sequencer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,10 @@ static int pick_commits(struct todo_list *todo_list, struct replay_opts *opts)
16531653
unlink(stopped_sha());
16541654
}
16551655
if (item->command <= TODO_SQUASH) {
1656+
if (IS_REBASE_I())
1657+
setenv("GIT_REFLOG_ACTION", reflog_message(opts,
1658+
command_to_string(item->command), NULL),
1659+
1);
16561660
res = do_pick_commit(item->command, item->commit,
16571661
opts, is_final_fixup(todo_list));
16581662
if (item->command == TODO_EDIT) {

0 commit comments

Comments
 (0)