Skip to content

Commit 4a4df70

Browse files
committed
Merge branch 'js/rebase-i-allow-drop-on-a-merge' into jch
* js/rebase-i-allow-drop-on-a-merge: rebase -i: permit 'drop' of a merge commit
2 parents 73be612 + 4d491ad commit 4a4df70

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
@@ -2278,6 +2278,7 @@ test_expect_success 'non-merge commands reject merge commits' '
22782278
edit $oid
22792279
fixup $oid
22802280
squash $oid
2281+
drop $oid # acceptable, no advice
22812282
EOF
22822283
(
22832284
set_replace_editor todo &&

0 commit comments

Comments
 (0)