Skip to content

Commit

Permalink
todo: avoid checkout in sequencer.c
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipwood committed Apr 13, 2023
1 parent 9857273 commit 9331974
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions builtin/rebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -1423,13 +1423,9 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
state_dir_base, cmd_live_rebase, buf.buf);
}

if ((options.flags & REBASE_INTERACTIVE_EXPLICIT) ||
(options.action != ACTION_NONE) ||
(options.exec.nr > 0) ||
(options.autosquash == -1 && options.config_autosquash == 1) ||
options.autosquash == 1) {
if (options.action != ACTION_NONE)
allow_preemptive_ff = 0;
}

if (options.committer_date_is_author_date || options.ignore_date)
options.flags |= REBASE_FORCE;

Expand Down Expand Up @@ -1597,6 +1593,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
switch (options.type) {
case REBASE_MERGE:
options.state_dir = merge_dir();
allow_preemptive_ff = 0;
break;
case REBASE_APPLY:
options.state_dir = apply_dir();
Expand Down

0 comments on commit 9331974

Please sign in to comment.