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

Function diff_opt_diff_algorithm_no_arg

diff.c:5689–5704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5687}
5688
5689static int diff_opt_diff_algorithm_no_arg(const struct option *opt,
5690 const char *arg, int unset)
5691{
5692 struct diff_options *options = opt->value;
5693
5694 BUG_ON_OPT_NEG(unset);
5695 BUG_ON_OPT_ARG(arg);
5696
5697 if (set_diff_algorithm(options, opt->long_name))
5698 BUG("available diff algorithms include \"myers\", "
5699 "\"minimal\", \"patience\" and \"histogram\"");
5700
5701 options->ignore_driver_algorithm = 1;
5702
5703 return 0;
5704}
5705
5706static int diff_opt_dirstat(const struct option *opt,
5707 const char *arg, int unset)

Callers

nothing calls this directly

Calls 1

set_diff_algorithmFunction · 0.70

Tested by

no test coverage detected