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

Function check_for_incompatible

fsmonitor-settings.c:65–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63#endif
64
65static enum fsmonitor_reason check_for_incompatible(struct repository *r,
66 int ipc MAYBE_UNUSED)
67{
68 if (!r->worktree) {
69 /*
70 * Bare repositories don't have a working directory and
71 * therefore have nothing to watch.
72 */
73 return FSMONITOR_REASON_BARE;
74 }
75
76#ifdef HAVE_FSMONITOR_OS_SETTINGS
77 {
78 enum fsmonitor_reason reason;
79
80 reason = check_remote(r);
81 if (reason != FSMONITOR_REASON_OK)
82 return reason;
83 reason = fsm_os__incompatible(r, ipc);
84 if (reason != FSMONITOR_REASON_OK)
85 return reason;
86 }
87#endif
88
89 return FSMONITOR_REASON_OK;
90}
91
92static struct fsmonitor_settings *alloc_settings(void)
93{

Callers 2

fsm_settings__set_ipcFunction · 0.85
fsm_settings__set_hookFunction · 0.85

Calls 2

check_remoteFunction · 0.85
fsm_os__incompatibleFunction · 0.50

Tested by

no test coverage detected