]> git.ipfire.org Git - thirdparty/git.git/blame - builtin/bisect--helper.c
Seventh batch for 2.12
[thirdparty/git.git] / builtin / bisect--helper.c
CommitLineData
1bf072e3
CC
1#include "builtin.h"
2#include "cache.h"
3#include "parse-options.h"
4#include "bisect.h"
5
6static const char * const git_bisect_helper_usage[] = {
9e7bbe2d 7 N_("git bisect--helper --next-all [--no-checkout]"),
1bf072e3
CC
8 NULL
9};
10
11int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
12{
0871984d 13 int next_all = 0;
fee92fc1 14 int no_checkout = 0;
1bf072e3 15 struct option options[] = {
d5d09d47
SB
16 OPT_BOOL(0, "next-all", &next_all,
17 N_("perform 'git bisect next'")),
18 OPT_BOOL(0, "no-checkout", &no_checkout,
19 N_("update BISECT_HEAD instead of checking out the current commit")),
1bf072e3
CC
20 OPT_END()
21 };
22
37782920
SB
23 argc = parse_options(argc, argv, prefix, options,
24 git_bisect_helper_usage, 0);
1bf072e3 25
0871984d 26 if (!next_all)
1bf072e3
CC
27 usage_with_options(git_bisect_helper_usage, options);
28
0871984d 29 /* next-all */
fee92fc1 30 return bisect_next_all(prefix, no_checkout);
1bf072e3 31}