]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
fsmonitor: refactor filesystem checks to common interface
authorEric DeCosta <edecosta@mathworks.com>
Tue, 4 Oct 2022 17:32:26 +0000 (17:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Oct 2022 18:05:22 +0000 (11:05 -0700)
commit508c1a572d633202a220f2902c0d6b4cd1678349
tree067191939e94ed2a8754b29372916f32a5529f89
parent85dc0da6dcf21801149e747310d087abe26b2354
fsmonitor: refactor filesystem checks to common interface

Provide a common interface for getting basic filesystem information
including filesystem type and whether the filesystem is remote.

Refactor existing code for getting basic filesystem info and detecting
remote file systems to the new interface.

Refactor filesystem checks to leverage new interface. For macOS,
error-out if the Unix Domain socket (UDS) file is on a remote
filesystem.

Signed-off-by: Eric DeCosta <edecosta@mathworks.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
compat/fsmonitor/fsm-path-utils-darwin.c [new file with mode: 0644]
compat/fsmonitor/fsm-path-utils-win32.c [new file with mode: 0644]
compat/fsmonitor/fsm-settings-darwin.c
compat/fsmonitor/fsm-settings-win32.c
contrib/buildsystems/CMakeLists.txt
fsmonitor-path-utils.h [new file with mode: 0644]
fsmonitor-settings.c