]> git.ipfire.org Git - thirdparty/git.git/commitdiff
bisect--helper: retire `--bisect-auto-next` subcommand
authorPranit Bauva <pranit.bauva@gmail.com>
Wed, 3 Feb 2021 21:54:36 +0000 (22:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Feb 2021 22:52:09 +0000 (14:52 -0800)
The --bisect-auto-next subcommand is no longer used from the
git-bisect.sh shell script. Instead the function bisect_auto_next()
is directly called from the C implementation.

Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
Signed-off-by: Miriam Rubio <mirucam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bisect--helper.c

index fd018ddda5c0121982f4638811b194d6c3907fc6..31eba522ffeed7c2504b7afb0f70d6ea75524715 100644 (file)
@@ -27,7 +27,6 @@ static const char * const git_bisect_helper_usage[] = {
        N_("git bisect--helper --bisect-start [--term-{new,bad}=<term> --term-{old,good}=<term>]"
                                            " [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]"),
        N_("git bisect--helper --bisect-next"),
-       N_("git bisect--helper --bisect-auto-next"),
        N_("git bisect--helper --bisect-state (bad|new) [<rev>]"),
        N_("git bisect--helper --bisect-state (good|old) [<rev>...]"),
        N_("git bisect--helper --bisect-replay <filename>"),
@@ -1003,7 +1002,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
                BISECT_START,
                BISECT_AUTOSTART,
                BISECT_NEXT,
-               BISECT_AUTO_NEXT,
                BISECT_STATE,
                BISECT_LOG,
                BISECT_REPLAY
@@ -1022,8 +1020,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
                         N_("start the bisect session"), BISECT_START),
                OPT_CMDMODE(0, "bisect-next", &cmdmode,
                         N_("find the next bisection commit"), BISECT_NEXT),
-               OPT_CMDMODE(0, "bisect-auto-next", &cmdmode,
-                        N_("verify the next bisection state then checkout the next bisection commit"), BISECT_AUTO_NEXT),
                OPT_CMDMODE(0, "bisect-state", &cmdmode,
                         N_("mark the state of ref (or refs)"), BISECT_STATE),
                OPT_CMDMODE(0, "bisect-log", &cmdmode,
@@ -1076,12 +1072,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
                get_terms(&terms);
                res = bisect_next(&terms, prefix);
                break;
-       case BISECT_AUTO_NEXT:
-               if (argc)
-                       return error(_("--bisect-auto-next requires 0 arguments"));
-               get_terms(&terms);
-               res = bisect_auto_next(&terms, prefix);
-               break;
        case BISECT_STATE:
                set_terms(&terms, "bad", "good");
                get_terms(&terms);