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

Function diff_filespec_load_driver

diff.c:2308–2321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2306}
2307
2308static void diff_filespec_load_driver(struct diff_filespec *one,
2309 struct index_state *istate)
2310{
2311 /* Use already-loaded driver */
2312 if (one->driver)
2313 return;
2314
2315 if (S_ISREG(one->mode))
2316 one->driver = userdiff_find_by_path(istate, one->path);
2317
2318 /* Fallback to default settings */
2319 if (!one->driver)
2320 one->driver = userdiff_find_by_name("default");
2321}
2322
2323static const char *userdiff_word_regex(struct diff_filespec *one,
2324 struct index_state *istate)

Callers 4

userdiff_word_regexFunction · 0.85
diff_filespec_is_binaryFunction · 0.85
diff_funcname_patternFunction · 0.85
get_textconvFunction · 0.85

Calls 2

userdiff_find_by_pathFunction · 0.85
userdiff_find_by_nameFunction · 0.85

Tested by

no test coverage detected