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

Function fsmonitor_hook_version

fsmonitor.c:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static int fsmonitor_hook_version(void)
43{
44 int hook_version;
45
46 if (repo_config_get_int(the_repository, "core.fsmonitorhookversion", &hook_version))
47 return -1;
48
49 if (hook_version == HOOK_INTERFACE_VERSION1 ||
50 hook_version == HOOK_INTERFACE_VERSION2)
51 return hook_version;
52
53 warning("Invalid hook version '%i' in core.fsmonitorhookversion. "
54 "Must be 1 or 2.", hook_version);
55 return -1;
56}
57
58int read_fsmonitor_extension(struct index_state *istate, const void *data,
59 unsigned long sz)

Callers 1

refresh_fsmonitorFunction · 0.85

Calls 2

repo_config_get_intFunction · 0.85
warningFunction · 0.85

Tested by

no test coverage detected