]> git.ipfire.org Git - thirdparty/git.git/commitdiff
rebase: fix an incompatible-options error message
authorElijah Newren <newren@gmail.com>
Sat, 11 Apr 2020 02:44:26 +0000 (02:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 11 Apr 2020 21:15:54 +0000 (14:15 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c

index 022aa2589a57e82a6b7d6f933232b74cf38d7ffd..0e223a96d46e63597ea8e6343e68f8f43dacd028 100644 (file)
@@ -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: