19
static GIT_PATH_FUNC(git_path_bisect_names, "BISECT_NAMES")
20
21
static const char * const git_bisect_helper_usage[] = {
22
- N_("git bisect--helper --next-all [--no-checkout]"),
22
+ N_("git bisect--helper --next-all"),
23
N_("git bisect--helper --write-terms <bad_term> <good_term>"),
24
N_("git bisect--helper --bisect-clean-state"),
25
N_("git bisect--helper --bisect-reset [<commit>]"),
421
return res;
422
}
423
424
-static int bisect_start(struct bisect_terms *terms, int no_checkout,
425
- const char **argv, int argc)
424
+static int bisect_start(struct bisect_terms *terms, const char **argv, int argc)
425
{
426
+ int no_checkout = 0;
427
int i, has_double_dash = 0, must_write_terms = 0, bad_seen = 0;
428
int flags, pathspec_pos, res = 0;
429
struct string_list revs = STRING_LIST_INIT_DUP;
632
BISECT_TERMS,
633
BISECT_START
634
} cmdmode = 0;
635
- int no_checkout = 0, res = 0, nolog = 0;
635
+ int res = 0, nolog = 0;
636
struct option options[] = {
637
OPT_CMDMODE(0, "next-all", &cmdmode,
638
N_("perform 'git bisect next'"), NEXT_ALL),
654
N_("print out the bisect terms"), BISECT_TERMS),
655
OPT_CMDMODE(0, "bisect-start", &cmdmode,
656
N_("start the bisect session"), BISECT_START),
657
- OPT_BOOL(0, "no-checkout", &no_checkout,
658
- N_("update BISECT_HEAD instead of checking out the current commit")),
657
OPT_BOOL(0, "no-log", &nolog,
658
N_("no log for BISECT_WRITE")),
659
OPT_END()
669
670
switch (cmdmode) {
671
case NEXT_ALL:
674
- res = bisect_next_all(the_repository, prefix, no_checkout);
672
+ res = bisect_next_all(the_repository, prefix);
673
break;
674
case WRITE_TERMS:
675
if (argc != 2)
711
break;
712
case BISECT_START:
713
set_terms(&terms, "bad", "good");
716
- res = bisect_start(&terms, no_checkout, argv, argc);
714
+ res = bisect_start(&terms, argv, argc);
715
break;
716
default:
717
return error("BUG: unknown subcommand '%d'", cmdmode);