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

Function set_diff_algorithm

diff.c:3825–3838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3823}
3824
3825static int set_diff_algorithm(struct diff_options *opts,
3826 const char *alg)
3827{
3828 long value = parse_algorithm_value(alg);
3829
3830 if (value < 0)
3831 return -1;
3832
3833 /* clear out previous settings */
3834 opts->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK;
3835 opts->xdl_opts |= value;
3836
3837 return 0;
3838}
3839
3840static void builtin_diff(const char *name_a,
3841 const char *name_b,

Callers 5

run_diff_cmdFunction · 0.70
run_diffstatFunction · 0.70
diff_opt_diff_algorithmFunction · 0.70
diff_opt_patienceFunction · 0.70

Calls 1

parse_algorithm_valueFunction · 0.85

Tested by

no test coverage detected