diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2022-05-27 00:47:02 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-27 01:59:26 +0300 |
commit | 1e7be10de0d493f471bf102a7eed32da8247c825 (patch) | |
tree | 7fd066b9c61fc633c46b15812f12b77a3422efef /fsmonitor-settings.h | |
parent | a85ad67bbdadb24ddb9b58a4010e20105c4c25e9 (diff) |
fsmonitor-settings: remote repos on macOS are incompatible
Teach Git to detect remote working directories on macOS and mark them as
incompatible with FSMonitor.
With this, `git fsmonitor--daemon run` will error out with a message
like it does for bare repos.
Client commands, like `git status`, will not attempt to start the daemon.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsmonitor-settings.h')
-rw-r--r-- | fsmonitor-settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fsmonitor-settings.h b/fsmonitor-settings.h index a48802cde9..afd1b3874a 100644 --- a/fsmonitor-settings.h +++ b/fsmonitor-settings.h @@ -17,6 +17,8 @@ enum fsmonitor_reason { FSMONITOR_REASON_UNTESTED = 0, FSMONITOR_REASON_OK, /* no incompatibility or when disabled */ FSMONITOR_REASON_BARE, + FSMONITOR_REASON_ERROR, /* FS error probing for compatibility */ + FSMONITOR_REASON_REMOTE, FSMONITOR_REASON_VFS4GIT, /* VFS for Git virtualization */ }; |