]> git.ipfire.org Git - thirdparty/git.git/commitdiff
bisect--helper: retire `--bisect-autostart` subcommand
authorPranit Bauva <pranit.bauva@gmail.com>
Thu, 15 Oct 2020 13:38:38 +0000 (15:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Oct 2020 19:24:20 +0000 (12:24 -0700)
The `--bisect-autostart` subcommand is no longer used from the
git-bisect.sh shell script. Instead the function
`bisect_autostart()` 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>
Reviewed-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bisect--helper.c

index b6087a8a21b08b89820efe3e643f568e9c7e462a..fc6ca257a4b647cee87504b993dc71376e7f7d42 100644 (file)
@@ -29,7 +29,6 @@ static const char * const git_bisect_helper_usage[] = {
                                            " [--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-autostart"),
        N_("git bisect--helper --bisect-state (bad|new) [<rev>]"),
        N_("git bisect--helper --bisect-state (good|old) [<rev>...]"),
        NULL
@@ -938,8 +937,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
                         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-autostart", &cmdmode,
-                        N_("start the bisection if it has not yet been started"), BISECT_AUTOSTART),
                OPT_CMDMODE(0, "bisect-state", &cmdmode,
                         N_("mark the state of ref (or refs)"), BISECT_STATE),
                OPT_BOOL(0, "no-log", &nolog,
@@ -999,12 +996,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
                get_terms(&terms);
                res = bisect_auto_next(&terms, prefix);
                break;
-       case BISECT_AUTOSTART:
-               if (argc)
-                       return error(_("--bisect-autostart does not accept arguments"));
-               set_terms(&terms, "bad", "good");
-               res = bisect_autostart(&terms);
-               break;
        case BISECT_STATE:
                set_terms(&terms, "bad", "good");
                get_terms(&terms);