mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-25 19:43:19 -05:00
On MacOS mark repos on NTFS or FAT32 volumes as incompatible. The builtin FSMonitor used Unix domain sockets on MacOS for IPC with clients. These sockets are kept in the .git directory. Unix sockets are not supported by NTFS and FAT32, so the daemon cannot start up. Test for this during our compatibility checking so that client commands do not keep trying to start the daemon. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
22 lines
615 B
C
22 lines
615 B
C
#ifndef FSMONITOR_SETTINGS_H
|
|
#define FSMONITOR_SETTINGS_H
|
|
|
|
struct repository;
|
|
|
|
enum fsmonitor_mode {
|
|
FSMONITOR_MODE_DISABLED = 0,
|
|
FSMONITOR_MODE_HOOK = 1, /* core.fsmonitor=<hook_path> */
|
|
FSMONITOR_MODE_IPC = 2, /* core.fsmonitor=<true> */
|
|
};
|
|
|
|
void fsm_settings__set_ipc(struct repository *r);
|
|
void fsm_settings__set_hook(struct repository *r, const char *path);
|
|
void fsm_settings__set_disabled(struct repository *r);
|
|
|
|
enum fsmonitor_mode fsm_settings__get_mode(struct repository *r);
|
|
const char *fsm_settings__get_hook_path(struct repository *r);
|
|
|
|
struct fsmonitor_settings;
|
|
|
|
#endif /* FSMONITOR_SETTINGS_H */
|