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

Function diff_opt_diff_algorithm

diff.c:5673–5687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5671}
5672
5673static int diff_opt_diff_algorithm(const struct option *opt,
5674 const char *arg, int unset)
5675{
5676 struct diff_options *options = opt->value;
5677
5678 BUG_ON_OPT_NEG(unset);
5679
5680 if (set_diff_algorithm(options, arg))
5681 return error(_("option diff-algorithm accepts \"myers\", "
5682 "\"minimal\", \"patience\" and \"histogram\""));
5683
5684 options->ignore_driver_algorithm = 1;
5685
5686 return 0;
5687}
5688
5689static int diff_opt_diff_algorithm_no_arg(const struct option *opt,
5690 const char *arg, int unset)

Callers

nothing calls this directly

Calls 2

errorFunction · 0.85
set_diff_algorithmFunction · 0.70

Tested by

no test coverage detected