]> git.ipfire.org Git - thirdparty/git.git/commit
fsmonitor: rename fsm-ipc-darwin.c to fsm-ipc-unix.c
authorPaul Tarjan <github@paulisageek.com>
Wed, 15 Apr 2026 13:27:30 +0000 (13:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Apr 2026 15:44:33 +0000 (08:44 -0700)
commitff384ebfad074321e22b2fb310a8f35df19576d6
tree99d608566e761cc570664732e8e0010765c45363
parent56cef9cb1a083c47b12b88548bf2126af8bfb263
fsmonitor: rename fsm-ipc-darwin.c to fsm-ipc-unix.c

The fsmonitor IPC path logic in fsm-ipc-darwin.c is not
Darwin-specific and will be reused by the upcoming Linux
implementation.  Rename it to fsm-ipc-unix.c to reflect that it
is shared by all Unix platforms.

Introduce FSMONITOR_OS_SETTINGS (set to "unix" for non-Windows, "win32"
for Windows) as a separate variable from FSMONITOR_DAEMON_BACKEND so
that the build files can distinguish between platform-specific files
(listen, health, path-utils) and shared Unix files (ipc, settings).

Move fsm-ipc to the FSMONITOR_OS_SETTINGS section in the Makefile, and
switch fsm-path-utils to use FSMONITOR_DAEMON_BACKEND since path-utils
is platform-specific (there will be separate darwin and linux versions).

Based-on-patch-by: Eric DeCosta <edecosta@mathworks.com>
Based-on-patch-by: Marziyeh Esipreh <marziyeh.esipreh@gmail.com>
Signed-off-by: Paul Tarjan <github@paulisageek.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
compat/fsmonitor/fsm-ipc-unix.c [moved from compat/fsmonitor/fsm-ipc-darwin.c with 100% similarity]
config.mak.uname
contrib/buildsystems/CMakeLists.txt
meson.build