[PATCH 19/34] sequencer (rebase -i): set the reflog message consistently
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 31, 2016, 08:55 UTC
- Message-ID
- <4c90d25df32e296dbace2b47e6f985c283ee23b4.1472633606.git.johannes.schindelin@gmx.de>
- In-Reply-To
- <cover.1472633606.git.johannes.schindelin@gmx.de>
We already used the same reflog message as the scripted version of rebase -i when finishing. With this commit, we do that also for all the commands before that.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- sequencer.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/sequencer.c b/sequencer.c index 71730e6..54f654c 100644 --- a/sequencer.c +++ b/sequencer.c @@ -1768,6 +1768,10 @@ static int pick_commits(struct todo_list *todo_list, struct replay_opts *opts) unlink(rebase_path_amend()); } if (item->command <= TODO_SQUASH) { + if (is_rebase_i(opts)) + setenv("GIT_REFLOG_ACTION", reflog_message(opts, + command_to_string(item->command), NULL), + 1); res = do_pick_commit(item->command, item->commit, opts, is_final_fixup(todo_list)); if (item->command == TODO_EDIT) {
-- 2.10.0.rc2.102.g5c102ec