mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-03 02:27:35 -05:00
Bare repos do not have a worktree, so there is nothing for the daemon watch. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
34 lines
956 B
C
34 lines
956 B
C
#ifndef FSMONITOR_SETTINGS_H
|
|
#define FSMONITOR_SETTINGS_H
|
|
|
|
struct repository;
|
|
|
|
enum fsmonitor_mode {
|
|
FSMONITOR_MODE_INCOMPATIBLE = -1, /* see _reason */
|
|
FSMONITOR_MODE_DISABLED = 0,
|
|
FSMONITOR_MODE_HOOK = 1, /* core.fsmonitor=<hook_path> */
|
|
FSMONITOR_MODE_IPC = 2, /* core.fsmonitor=<true> */
|
|
};
|
|
|
|
/*
|
|
* Incompatibility reasons.
|
|
*/
|
|
enum fsmonitor_reason {
|
|
FSMONITOR_REASON_OK = 0, /* no incompatibility or when disbled */
|
|
FSMONITOR_REASON_BARE,
|
|
};
|
|
|
|
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);
|
|
|
|
enum fsmonitor_reason fsm_settings__get_reason(struct repository *r);
|
|
int fsm_settings__error_if_incompatible(struct repository *r);
|
|
|
|
struct fsmonitor_settings;
|
|
|
|
#endif /* FSMONITOR_SETTINGS_H */
|