bisect--helper: retire `--bisect-auto-next` subcommand

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>

Pranit Bauva committed Feb 3, 2021 at 22:54 UTC 9feea34810b750a6bca30ea82878fa2cbb0b830b
1 file changed -10
builtin/bisect--helper.c
-10
@@ -27,7 +27,6 @@ static const char * const git_bisect_helper_usage[] = {
27 N_("git bisect--helper --bisect-start [--term-{new,bad}=<term> --term-{old,good}=<term>]"
28 " [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]"),
29 N_("git bisect--helper --bisect-next"),
30 - N_("git bisect--helper --bisect-auto-next"),
30 N_("git bisect--helper --bisect-state (bad|new) [<rev>]"),
31 N_("git bisect--helper --bisect-state (good|old) [<rev>...]"),
32 N_("git bisect--helper --bisect-replay <filename>"),
@@ -1003,7 +1002,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
1002 BISECT_START,
1003 BISECT_AUTOSTART,
1004 BISECT_NEXT,
1006 - BISECT_AUTO_NEXT,
1005 BISECT_STATE,
1006 BISECT_LOG,
1007 BISECT_REPLAY
@@ -1022,8 +1020,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
1020 N_("start the bisect session"), BISECT_START),
1021 OPT_CMDMODE(0, "bisect-next", &cmdmode,
1022 N_("find the next bisection commit"), BISECT_NEXT),
1025 - OPT_CMDMODE(0, "bisect-auto-next", &cmdmode,
1026 - N_("verify the next bisection state then checkout the next bisection commit"), BISECT_AUTO_NEXT),
1023 OPT_CMDMODE(0, "bisect-state", &cmdmode,
1024 N_("mark the state of ref (or refs)"), BISECT_STATE),
1025 OPT_CMDMODE(0, "bisect-log", &cmdmode,
@@ -1076,12 +1072,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
1072 get_terms(&terms);
1073 res = bisect_next(&terms, prefix);
1074 break;
1079 - case BISECT_AUTO_NEXT:
1080 - if (argc)
1081 - return error(_("--bisect-auto-next requires 0 arguments"));
1082 - get_terms(&terms);
1083 - res = bisect_auto_next(&terms, prefix);
1084 - break;
1075 case BISECT_STATE:
1076 set_terms(&terms, "bad", "good");
1077 get_terms(&terms);