Skip to content

Commit bc44e9d

Browse files
committed
Merge branch 'js/rebase-i-allow-drop-on-a-merge' into next
During interactive rebase, using 'drop' on a merge commit lead to an error, which was incorrect. * js/rebase-i-allow-drop-on-a-merge: rebase -i: permit 'drop' of a merge commit
2 parents 1a5c1cc + 4d491ad commit bc44e9d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sequencer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2721,6 +2721,7 @@ static int check_merge_commit_insn(enum todo_command command)
27212721
return error(_("cannot squash merge commit into another commit"));
27222722

27232723
case TODO_MERGE:
2724+
case TODO_DROP:
27242725
return 0;
27252726

27262727
default:

t/t3404-rebase-interactive.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,6 +2263,7 @@ test_expect_success 'non-merge commands reject merge commits' '
22632263
edit $oid
22642264
fixup $oid
22652265
squash $oid
2266+
drop $oid # acceptable, no advice
22662267
EOF
22672268
(
22682269
set_replace_editor todo &&

0 commit comments

Comments
 (0)