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>
This commit is contained in:
committed by
Junio C Hamano
parent
d33c804dae
commit
5c58fbd265
@ -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'",
|
||||
|
||||
Reference in New Issue
Block a user