| 40 | } |
| 41 | |
| 42 | static 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 | |
| 58 | int read_fsmonitor_extension(struct index_state *istate, const void *data, |
| 59 | unsigned long sz) |
no test coverage detected