Skip to content

Commit 50ed761

Browse files
newrengitster
authored andcommitted
rebase: fix an incompatible-options error message
When the user specifies the apply backend with options that only work with the merge backend, such as git rebase --apply --exec /bin/true HEAD~3 the error message has always been fatal: --exec requires an interactive rebase This error message is misleading and was one of the reasons we renamed the interactive backend to the merge backend. Update the error message to state that these options merely require use of the merge backend. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b9cbd29 commit 50ed761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/rebase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ static void imply_merge(struct rebase_options *opts, const char *option)
561561
{
562562
switch (opts->type) {
563563
case REBASE_APPLY:
564-
die(_("%s requires an interactive rebase"), option);
564+
die(_("%s requires the merge backend"), option);
565565
break;
566566
case REBASE_MERGE:
567567
case REBASE_PRESERVE_MERGES:

0 commit comments

Comments
 (0)