Skip to content

Commit b0f6494

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]> Reviewed-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5c517fe commit b0f6494

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
@@ -938,8 +937,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
938937
N_("find the next bisection commit"), BISECT_NEXT),
939938
OPT_CMDMODE(0, "bisect-auto-next", &cmdmode,
940939
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),
943940
OPT_CMDMODE(0, "bisect-state", &cmdmode,
944941
N_("mark the state of ref (or refs)"), BISECT_STATE),
945942
OPT_BOOL(0, "no-log", &nolog,
@@ -999,12 +996,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
999996
get_terms(&terms);
1000997
res = bisect_auto_next(&terms, prefix);
1001998
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;
1008999
case BISECT_STATE:
10091000
set_terms(&terms, "bad", "good");
10101001
get_terms(&terms);

0 commit comments

Comments
 (0)