]> git.ipfire.org Git - thirdparty/git.git/blame - builtin/bisect--helper.c
Merge branch 'maint-1.7.0' into maint-1.7.1
[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[] = {
0871984d 7 "git bisect--helper --next-all",
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;
1bf072e3 14 struct option options[] = {
0871984d
CC
15 OPT_BOOLEAN(0, "next-all", &next_all,
16 "perform 'git bisect next'"),
1bf072e3
CC
17 OPT_END()
18 };
19
37782920
SB
20 argc = parse_options(argc, argv, prefix, options,
21 git_bisect_helper_usage, 0);
1bf072e3 22
0871984d 23 if (!next_all)
1bf072e3
CC
24 usage_with_options(git_bisect_helper_usage, options);
25
0871984d
CC
26 /* next-all */
27 return bisect_next_all(prefix);
1bf072e3 28}