| 5452 | } |
| 5453 | |
| 5454 | static 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 | |
| 5470 | static int diff_opt_diff_filter(const struct option *option, |
| 5471 | const char *optarg, int unset) |
no test coverage detected