Update draft release notes to 1.7.9
[git/mingw.git] / builtin / bisect--helper.c
blob8d325a5179f68d2810b5b2082fe66dc6d00da455
1 #include "builtin.h"
2 #include "cache.h"
3 #include "parse-options.h"
4 #include "bisect.h"
6 static const char * const git_bisect_helper_usage[] = {
7 "git bisect--helper --next-all [--no-checkout]",
8 NULL
9 };
11 int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
13 int next_all = 0;
14 int no_checkout = 0;
15 struct option options[] = {
16 OPT_BOOLEAN(0, "next-all", &next_all,
17 "perform 'git bisect next'"),
18 OPT_BOOLEAN(0, "no-checkout", &no_checkout,
19 "update BISECT_HEAD instead of checking out the current commit"),
20 OPT_END()
23 argc = parse_options(argc, argv, prefix, options,
24 git_bisect_helper_usage, 0);
26 if (!next_all)
27 usage_with_options(git_bisect_helper_usage, options);
29 /* next-all */
30 return bisect_next_all(prefix, no_checkout);