| 63 | #endif |
| 64 | |
| 65 | static 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 | |
| 92 | static struct fsmonitor_settings *alloc_settings(void) |
| 93 | { |
no test coverage detected