diff options
author | Eric DeCosta <edecosta@mathworks.com> | 2022-10-04 19:32:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-05 20:05:22 +0200 |
commit | 6beb2688d33373508610b190f04721e748caa12c (patch) | |
tree | 498f94c5982ff87cb0747cf9b162715abdd7100f /fsmonitor-ipc.h | |
parent | fsmonitor: refactor filesystem checks to common interface (diff) | |
download | git-6beb2688d33373508610b190f04721e748caa12c.tar.xz git-6beb2688d33373508610b190f04721e748caa12c.zip |
fsmonitor: relocate socket file if .git directory is remote
If the .git directory is on a remote filesystem, create the socket
file in 'fsmonitor.socketDir' if it is defined, else create it in $HOME.
Signed-off-by: Eric DeCosta <edecosta@mathworks.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | fsmonitor-ipc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fsmonitor-ipc.h b/fsmonitor-ipc.h index b6a7067c3a..8b489da762 100644 --- a/fsmonitor-ipc.h +++ b/fsmonitor-ipc.h @@ -3,6 +3,8 @@ #include "simple-ipc.h" +struct repository; + /* * Returns true if built-in file system monitor daemon is defined * for this platform. @@ -16,7 +18,7 @@ int fsmonitor_ipc__is_supported(void); * * Returns NULL if the daemon is not supported on this platform. */ -const char *fsmonitor_ipc__get_path(void); +const char *fsmonitor_ipc__get_path(struct repository *r); /* * Try to determine whether there is a `git-fsmonitor--daemon` process |