MCPcopy Create free account
hub / github.com/git/git / set_diff_algorithm

Function set_diff_algorithm

builtin/merge-file.c:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static int set_diff_algorithm(xpparam_t *xpp,
37 const char *alg)
38{
39 long diff_algorithm = parse_algorithm_value(alg);
40 if (diff_algorithm < 0)
41 return -1;
42 xpp->flags = (xpp->flags & ~XDF_DIFF_ALGORITHM_MASK) | diff_algorithm;
43 return 0;
44}
45
46static int diff_algorithm_cb(const struct option *opt,
47 const char *arg, int unset)

Callers 1

diff_algorithm_cbFunction · 0.70

Calls 1

parse_algorithm_valueFunction · 0.85

Tested by

no test coverage detected