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

Function diff_opt_default_prefix

diff.c:5808–5819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5806}
5807
5808static int diff_opt_default_prefix(const struct option *opt,
5809 const char *optarg, int unset)
5810{
5811 struct diff_options *options = opt->value;
5812
5813 BUG_ON_OPT_NEG(unset);
5814 BUG_ON_OPT_ARG(optarg);
5815 FREE_AND_NULL(diff_src_prefix);
5816 FREE_AND_NULL(diff_dst_prefix);
5817 diff_set_default_prefix(options);
5818 return 0;
5819}
5820
5821static enum parse_opt_result diff_opt_output(struct parse_opt_ctx_t *ctx,
5822 const struct option *opt,

Callers

nothing calls this directly

Calls 1

diff_set_default_prefixFunction · 0.85

Tested by

no test coverage detected