Skip to content

Commit 20a99c3

Browse files
pranitbauva1997gitster
authored andcommitted
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 <[email protected]> Mentored-by: Christian Couder <[email protected]> Mentored-by: Johannes Schindelin <[email protected]> Signed-off-by: Pranit Bauva <[email protected]> Signed-off-by: Tanushree Tumane <[email protected]> Signed-off-by: Miriam Rubio <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d34155f commit 20a99c3

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

builtin/bisect--helper.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ static const char * const git_bisect_helper_usage[] = {
2929
" [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]"),
3030
N_("git bisect--helper --bisect-next"),
3131
N_("git bisect--helper --bisect-auto-next"),
32-
N_("git bisect--helper --bisect-autostart"),
3332
N_("git bisect--helper --bisect-state (bad|new) [<rev>]"),
3433
N_("git bisect--helper --bisect-state (good|old) [<rev>...]"),
3534
NULL
@@ -936,8 +935,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
936935
N_("find the next bisection commit"), BISECT_NEXT),
937936
OPT_CMDMODE(0, "bisect-auto-next", &cmdmode,
938937
N_("verify the next bisection state then checkout the next bisection commit"), BISECT_AUTO_NEXT),
939-
OPT_CMDMODE(0, "bisect-autostart", &cmdmode,
940-
N_("start the bisection if it has not yet been started"), BISECT_AUTOSTART),
941938
OPT_CMDMODE(0, "bisect-state", &cmdmode,
942939
N_("mark the state of ref (or refs)"), BISECT_STATE),
943940
OPT_BOOL(0, "no-log", &nolog,
@@ -997,12 +994,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
997994
get_terms(&terms);
998995
res = bisect_auto_next(&terms, prefix);
999996
break;
1000-
case BISECT_AUTOSTART:
1001-
if (argc)
1002-
return error(_("--bisect-autostart does not accept arguments"));
1003-
set_terms(&terms, "bad", "good");
1004-
res = bisect_autostart(&terms);
1005-
break;
1006997
case BISECT_STATE:
1007998
set_terms(&terms, "bad", "good");
1008999
get_terms(&terms);

0 commit comments

Comments
 (0)