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

Function diff_algorithm_cb

builtin/merge-file.c:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static int diff_algorithm_cb(const struct option *opt,
47 const char *arg, int unset)
48{
49 xpparam_t *xpp = opt->value;
50
51 BUG_ON_OPT_NEG(unset);
52
53 if (set_diff_algorithm(xpp, arg))
54 return error(_("option diff-algorithm accepts \"myers\", "
55 "\"minimal\", \"patience\" and \"histogram\""));
56
57 return 0;
58}
59
60int cmd_merge_file(int argc,
61 const char **argv,

Callers

nothing calls this directly

Calls 2

errorFunction · 0.85
set_diff_algorithmFunction · 0.70

Tested by

no test coverage detected