]>
Commit | Line | Data |
---|---|---|
1bf072e3 CC |
1 | #include "builtin.h" |
2 | #include "cache.h" | |
3 | #include "parse-options.h" | |
4 | #include "bisect.h" | |
5 | ||
6 | static const char * const git_bisect_helper_usage[] = { | |
ef24c7ca | 7 | "git bisect--helper --next-exit", |
1bf072e3 CC |
8 | NULL |
9 | }; | |
10 | ||
11 | int cmd_bisect__helper(int argc, const char **argv, const char *prefix) | |
12 | { | |
ef24c7ca | 13 | int next_exit = 0; |
1bf072e3 | 14 | struct option options[] = { |
ef24c7ca CC |
15 | OPT_BOOLEAN(0, "next-exit", &next_exit, |
16 | "output bisect result and exit instuctions"), | |
1bf072e3 CC |
17 | OPT_END() |
18 | }; | |
19 | ||
20 | argc = parse_options(argc, argv, options, git_bisect_helper_usage, 0); | |
21 | ||
c99f069d | 22 | if (!next_exit) |
1bf072e3 CC |
23 | usage_with_options(git_bisect_helper_usage, options); |
24 | ||
c99f069d CC |
25 | /* next-exit */ |
26 | return bisect_next_exit(prefix); | |
1bf072e3 | 27 | } |