MCPcopy Create free account
hub / github.com/git/git / parse_dirstat_opt

Function parse_dirstat_opt

diff.c:5454–5468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5452}
5453
5454static int parse_dirstat_opt(struct diff_options *options, const char *params)
5455{
5456 struct strbuf errmsg = STRBUF_INIT;
5457 if (parse_dirstat_params(options, params, &errmsg))
5458 die(_("Failed to parse --dirstat/-X option parameter:\n%s"),
5459 errmsg.buf);
5460 strbuf_release(&errmsg);
5461 /*
5462 * The caller knows a dirstat-related option is given from the command
5463 * line; allow it to say "return this_function();"
5464 */
5465 options->output_format &= ~DIFF_FORMAT_NO_OUTPUT;
5466 options->output_format |= DIFF_FORMAT_DIRSTAT;
5467 return 1;
5468}
5469
5470static int diff_opt_diff_filter(const struct option *option,
5471 const char *optarg, int unset)

Callers 1

diff_opt_dirstatFunction · 0.85

Calls 3

parse_dirstat_paramsFunction · 0.85
strbuf_releaseFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected