| 2306 | } |
| 2307 | |
| 2308 | static 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 | |
| 2323 | static const char *userdiff_word_regex(struct diff_filespec *one, |
| 2324 | struct index_state *istate) |
no test coverage detected