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

Function blame_diff_algorithm_callback

builtin/blame.c:859–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859static int blame_diff_algorithm_callback(const struct option *option,
860 const char *arg, int unset)
861{
862 int *opt = option->value;
863 long value = parse_algorithm_value(arg);
864
865 BUG_ON_OPT_NEG(unset);
866
867 if (value < 0)
868 return error(_("option diff-algorithm accepts \"myers\", "
869 "\"minimal\", \"patience\" and \"histogram\""));
870
871 *opt &= ~XDF_DIFF_ALGORITHM_MASK;
872 *opt |= value;
873
874 return 0;
875}
876
877static int is_a_rev(const char *name)
878{

Callers

nothing calls this directly

Calls 2

parse_algorithm_valueFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected