bisect--helper: retire `--bisect-autostart` subcommand

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>

Pranit Bauva committed Oct 15, 2020 at 15:38 UTC b0f6494f70fd72141581ae2d392d9d793be08b81
1 file changed -9
builtin/bisect--helper.c
-9
@@ -29,7 +29,6 @@ static const char * const git_bisect_helper_usage[] = {
29 " [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]"),
30 N_("git bisect--helper --bisect-next"),
31 N_("git bisect--helper --bisect-auto-next"),
32 - N_("git bisect--helper --bisect-autostart"),
32 N_("git bisect--helper --bisect-state (bad|new) [<rev>]"),
33 N_("git bisect--helper --bisect-state (good|old) [<rev>...]"),
34 NULL
@@ -938,8 +937,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
937 N_("find the next bisection commit"), BISECT_NEXT),
938 OPT_CMDMODE(0, "bisect-auto-next", &cmdmode,
939 N_("verify the next bisection state then checkout the next bisection commit"), BISECT_AUTO_NEXT),
941 - OPT_CMDMODE(0, "bisect-autostart", &cmdmode,
942 - N_("start the bisection if it has not yet been started"), BISECT_AUTOSTART),
940 OPT_CMDMODE(0, "bisect-state", &cmdmode,
941 N_("mark the state of ref (or refs)"), BISECT_STATE),
942 OPT_BOOL(0, "no-log", &nolog,
@@ -999,12 +996,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
996 get_terms(&terms);
997 res = bisect_auto_next(&terms, prefix);
998 break;
1002 - case BISECT_AUTOSTART:
1003 - if (argc)
1004 - return error(_("--bisect-autostart does not accept arguments"));
1005 - set_terms(&terms, "bad", "good");
1006 - res = bisect_autostart(&terms);
1007 - break;
999 case BISECT_STATE:
1000 set_terms(&terms, "bad", "good");
1001 get_terms(&terms);