diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2022-05-26 23:47:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-27 00:59:26 +0200 |
commit | 5c58fbd26579391d825cb1ef0df8703bd6fd0ed5 (patch) | |
tree | 9ce88463c9cfbb857aea9b8a0920426525a7092c /fsmonitor-settings.c | |
parent | fsmonitor-settings: stub in Win32-specific incompatibility checking (diff) | |
download | git-5c58fbd26579391d825cb1ef0df8703bd6fd0ed5.tar.xz git-5c58fbd26579391d825cb1ef0df8703bd6fd0ed5.zip |
fsmonitor-settings: VFS for Git virtual repos are incompatible
VFS for Git virtual repositories are incompatible with FSMonitor.
VFS for Git is a downstream fork of Git. It contains its own custom
file system watcher that is aware of the virtualization. If a working
directory is being managed by VFS for Git, we should not try to watch
it because we may get incomplete results.
We do not know anything about how VFS for Git works, but we do
know that VFS for Git working directories contain a well-defined
config setting. If it is set, mark the working directory as
incompatible.
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fsmonitor-settings.c b/fsmonitor-settings.c index f67db913f5..600ae165ab 100644 --- a/fsmonitor-settings.c +++ b/fsmonitor-settings.c @@ -207,6 +207,12 @@ char *fsm_settings__get_incompatible_msg(const struct repository *r, _("bare repository '%s' is incompatible with fsmonitor"), xgetcwd()); goto done; + + case FSMONITOR_REASON_VFS4GIT: + strbuf_addf(&msg, + _("virtual repository '%s' is incompatible with fsmonitor"), + r->worktree); + goto done; } BUG("Unhandled case in fsm_settings__get_incompatible_msg: '%d'", |