builtin-bisect--helper.con commit Merge branch 'jc/mktree' into sb/opt-filename (3d09e64)
   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[] = {
   7        "git bisect--helper --next-all",
   8        NULL
   9};
  10
  11int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
  12{
  13        int next_all = 0;
  14        struct option options[] = {
  15                OPT_BOOLEAN(0, "next-all", &next_all,
  16                            "perform 'git bisect next'"),
  17                OPT_END()
  18        };
  19
  20        argc = parse_options(argc, argv, options, git_bisect_helper_usage, 0);
  21
  22        if (!next_all)
  23                usage_with_options(git_bisect_helper_usage, options);
  24
  25        /* next-all */
  26        return bisect_next_all(prefix);
  27}