Merge branch 'js/rebase-i-allow-drop-on-a-merge' into maint-2.51
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 commitmaint
commit
d549c188be
|
|
@ -2721,6 +2721,7 @@ static int check_merge_commit_insn(enum todo_command command)
|
||||||
return error(_("cannot squash merge commit into another commit"));
|
return error(_("cannot squash merge commit into another commit"));
|
||||||
|
|
||||||
case TODO_MERGE:
|
case TODO_MERGE:
|
||||||
|
case TODO_DROP:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -2263,6 +2263,7 @@ test_expect_success 'non-merge commands reject merge commits' '
|
||||||
edit $oid
|
edit $oid
|
||||||
fixup $oid
|
fixup $oid
|
||||||
squash $oid
|
squash $oid
|
||||||
|
drop $oid # acceptable, no advice
|
||||||
EOF
|
EOF
|
||||||
(
|
(
|
||||||
set_replace_editor todo &&
|
set_replace_editor todo &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue