diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2022-05-26 21:46:59 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-26 22:59:26 (GMT) |
commit | d33c804daec8aaf1e8af187c00166ef4cb017262 (patch) | |
tree | ee9a0c31535c694e78d3d24e5bbb597ca1bf159a /fsmonitor-settings.c | |
parent | 62a62a28308453ee830bb7e02cf732474a6e01a5 (diff) | |
download | git-d33c804daec8aaf1e8af187c00166ef4cb017262.zip git-d33c804daec8aaf1e8af187c00166ef4cb017262.tar.gz git-d33c804daec8aaf1e8af187c00166ef4cb017262.tar.bz2 |
fsmonitor-settings: stub in Win32-specific incompatibility checking
Extend generic incompatibility checkout with platform-specific
mechanism. Stub in Win32 version.
In the existing fsmonitor-settings code we have a way to mark
types of repos as incompatible with fsmonitor (whether via the
hook and IPC APIs). For example, we do this for bare repos,
since there are no files to watch.
Extend this exclusion mechanism for platform-specific reasons.
This commit just creates the framework and adds a stub for Win32.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsmonitor-settings.c')
-rw-r--r-- | fsmonitor-settings.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fsmonitor-settings.c b/fsmonitor-settings.c index 7d3177d..f67db91 100644 --- a/fsmonitor-settings.c +++ b/fsmonitor-settings.c @@ -23,6 +23,16 @@ static enum fsmonitor_reason check_for_incompatible(struct repository *r) return FSMONITOR_REASON_BARE; } +#ifdef HAVE_FSMONITOR_OS_SETTINGS + { + enum fsmonitor_reason reason; + + reason = fsm_os__incompatible(r); + if (reason != FSMONITOR_REASON_OK) + return reason; + } +#endif + return FSMONITOR_REASON_OK; } |