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

Function diff_opt_parse

diff.c:6324–6342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6322}
6323
6324int diff_opt_parse(struct diff_options *options,
6325 const char **av, int ac, const char *prefix)
6326{
6327 struct option no_options[] = { OPT_END() };
6328 struct option *parseopts = add_diff_options(no_options, options);
6329
6330 if (!prefix)
6331 prefix = "";
6332
6333 ac = parse_options(ac, av, prefix, parseopts, NULL,
6334 PARSE_OPT_KEEP_DASHDASH |
6335 PARSE_OPT_KEEP_UNKNOWN_OPT |
6336 PARSE_OPT_NO_INTERNAL_HELP |
6337 PARSE_OPT_ONE_SHOT |
6338 PARSE_OPT_STOP_AT_NON_OPTION);
6339 free(parseopts);
6340
6341 return ac;
6342}
6343
6344int parse_rename_score(const char **cp_p)
6345{

Callers 1

handle_revision_optFunction · 0.85

Calls 2

add_diff_optionsFunction · 0.85
parse_optionsFunction · 0.85

Tested by

no test coverage detected