Skip to content

Commit 2748862

Browse files
committed
sequencer (rebase -i): leave a patch upon error
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 0aaadc1 commit 2748862

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sequencer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,6 @@ static int update_squash_messages(enum todo_command command,
797797
return 0;
798798
}
799799

800-
801800
static int do_pick_commit(enum todo_command command, struct commit *commit,
802801
struct replay_opts *opts, int final_fixup)
803802
{
@@ -1583,6 +1582,8 @@ static int pick_commits(struct todo_list *todo_list, struct replay_opts *opts)
15831582
if (res && is_fixup(item->command))
15841583
return error_failed_squash(item->commit, opts,
15851584
item->arg_len, item->arg);
1585+
else if (res && IS_REBASE_I())
1586+
return res | make_patch(item->commit, opts);
15861587
}
15871588
else if (item->command == TODO_EXEC) {
15881589
char *end_of_arg = (char *)(item->arg + item->arg_len);

0 commit comments

Comments
 (0)