Skip to content

Commit 1b3255e

Browse files
committed
sequencer (rebase -i): clean up some files before each step
Certain files are kept in the state directory to indicate e.g. that a commit wants to be amended, or which author to record after a merge conflict was resolved. These files need to be removed before the executing the *next* command, of course. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 7b8e518 commit 1b3255e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sequencer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,7 @@ static int pick_commits(struct todo_list *todo_list, struct replay_opts *opts)
15141514
unlink(git_path_rebase_msg());
15151515
unlink(author_script());
15161516
unlink(stopped_sha());
1517+
unlink(git_path_rebase_amend());
15171518
}
15181519
if (item->command <= TODO_SQUASH) {
15191520
res = do_pick_commit(item->command, item->commit,

0 commit comments

Comments
 (0)