]> git.ipfire.org Git - thirdparty/git.git/commit
fsmonitor: rename fsm-ipc-darwin.c to fsm-ipc-unix.c
authorPaul Tarjan <github@paulisageek.com>
Thu, 9 Apr 2026 04:59:28 +0000 (04:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Apr 2026 17:59:28 +0000 (10:59 -0700)
commitfed191168e19f84b22d650f7659059f461bd84d2
tree99d608566e761cc570664732e8e0010765c45363
parent34cc34abb320cc8e14ea7015c900ede6a9b573e6
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