diff mbox series

[v2,3/3] rebase: fix an incompatible-options error message

Message ID ee5e42361fcdeb5dc04765a6a4eeeaf69ab720b1.1586541094.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series rebase -i: mark commits that begin empty in todo editor | expand

Commit Message

John Passaro via GitGitGadget April 10, 2020, 5:51 p.m. UTC
From: Elijah Newren <newren@gmail.com>

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 <newren@gmail.com>
---
 builtin/rebase.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/builtin/rebase.c b/builtin/rebase.c
index 022aa2589a5..0e223a96d46 100644
--- a/builtin/rebase.c
+++ b/builtin/rebase.c
@@ -561,7 +561,7 @@  static void imply_merge(struct rebase_options *opts, const char *option)
 {
 	switch (opts->type) {
 	case REBASE_APPLY:
-		die(_("%s requires an interactive rebase"), option);
+		die(_("%s requires the merge backend"), option);
 		break;
 	case REBASE_MERGE:
 	case REBASE_PRESERVE_MERGES: