MCPcopy Index your code
hub / github.com/git/git / parse_nodash_opt

Function parse_nodash_opt

parse-options.c:596–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596static enum parse_opt_result parse_nodash_opt(struct parse_opt_ctx_t *p,
597 const char *arg,
598 const struct option *options)
599{
600 for (; options->type != OPTION_END; options++) {
601 if (!(options->flags & PARSE_OPT_NODASH))
602 continue;
603 if (options->short_name == arg[0] && arg[1] == '\0')
604 return get_value(p, options, OPT_SHORT);
605 }
606 return PARSE_OPT_ERROR;
607}
608
609static enum parse_opt_result parse_subcommand(const char *arg,
610 const struct option *options)

Callers 1

parse_options_stepFunction · 0.85

Calls 1

get_valueFunction · 0.70

Tested by

no test coverage detected