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

Function userdiff_find_by_namelen_cb

userdiff.c:388–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386};
387
388static int userdiff_find_by_namelen_cb(struct userdiff_driver *driver,
389 enum userdiff_driver_type type UNUSED,
390 void *priv)
391{
392 struct find_by_namelen_data *cb_data = priv;
393
394 if (!xstrncmpz(driver->name, cb_data->name, cb_data->len)) {
395 cb_data->driver = driver;
396 return 1; /* tell the caller to stop iterating */
397 }
398 return 0;
399}
400
401static int regexec_supports_multi_byte_chars(void)
402{

Callers

nothing calls this directly

Calls 1

xstrncmpzFunction · 0.85

Tested by

no test coverage detected