Skip to content

Commit 97b8294

Browse files
pranitbauva1997gitster
authored andcommitted
bisect--helper: retire --check-and-set-terms subcommand
The `--check-and-set-terms` subcommand is no longer from the git-bisect.sh shell script. Instead the function `check_and_set_terms()` is 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 e4c7b33 commit 97b8294

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

builtin/bisect--helper.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ static GIT_PATH_FUNC(git_path_bisect_first_parent, "BISECT_FIRST_PARENT")
2121

2222
static const char * const git_bisect_helper_usage[] = {
2323
N_("git bisect--helper --bisect-reset [<commit>]"),
24-
N_("git bisect--helper --bisect-check-and-set-terms <command> <good_term> <bad_term>"),
2524
N_("git bisect--helper --bisect-next-check <good_term> <bad_term> [<term>]"),
2625
N_("git bisect--helper --bisect-terms [--term-good | --term-old | --term-bad | --term-new]"),
2726
N_("git bisect--helper --bisect-start [--term-{new,bad}=<term> --term-{old,good}=<term>]"
@@ -1032,7 +1031,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
10321031
{
10331032
enum {
10341033
BISECT_RESET = 1,
1035-
CHECK_AND_SET_TERMS,
10361034
BISECT_NEXT_CHECK,
10371035
BISECT_TERMS,
10381036
BISECT_START,
@@ -1047,8 +1045,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
10471045
struct option options[] = {
10481046
OPT_CMDMODE(0, "bisect-reset", &cmdmode,
10491047
N_("reset the bisection state"), BISECT_RESET),
1050-
OPT_CMDMODE(0, "check-and-set-terms", &cmdmode,
1051-
N_("check and set terms in a bisection state"), CHECK_AND_SET_TERMS),
10521048
OPT_CMDMODE(0, "bisect-next-check", &cmdmode,
10531049
N_("check whether bad or good terms exist"), BISECT_NEXT_CHECK),
10541050
OPT_CMDMODE(0, "bisect-terms", &cmdmode,
@@ -1084,12 +1080,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
10841080
return error(_("--bisect-reset requires either no argument or a commit"));
10851081
res = bisect_reset(argc ? argv[0] : NULL);
10861082
break;
1087-
case CHECK_AND_SET_TERMS:
1088-
if (argc != 3)
1089-
return error(_("--check-and-set-terms requires 3 arguments"));
1090-
set_terms(&terms, argv[2], argv[1]);
1091-
res = check_and_set_terms(&terms, argv[0]);
1092-
break;
10931083
case BISECT_NEXT_CHECK:
10941084
if (argc != 2 && argc != 3)
10951085
return error(_("--bisect-next-check requires 2 or 3 arguments"));

0 commit comments

Comments
 (0)