]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fsmonitor: rename fsm-settings-darwin.c to fsm-settings-unix.c
authorPaul Tarjan <github@paulisageek.com>
Thu, 9 Apr 2026 04:59:29 +0000 (04:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Apr 2026 17:59:28 +0000 (10:59 -0700)
The fsmonitor settings logic in fsm-settings-darwin.c is not
Darwin-specific and will be reused by the upcoming Linux
implementation.  Rename it to fsm-settings-unix.c to reflect that it
is shared by all Unix platforms.

Update the build files (meson.build and CMakeLists.txt) to use
FSMONITOR_OS_SETTINGS for fsm-settings, matching the approach already
used for fsm-ipc.

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>
compat/fsmonitor/fsm-settings-unix.c [moved from compat/fsmonitor/fsm-settings-darwin.c with 100% similarity]
contrib/buildsystems/CMakeLists.txt
meson.build

index 6197d5729cbfe4a22488b096c0710f9060603bbd..d613809e26fd2036b377603fd36d86b9e0d25859 100644 (file)
@@ -306,7 +306,7 @@ if(SUPPORTS_SIMPLE_IPC)
                list(APPEND compat_SOURCES compat/fsmonitor/fsm-path-utils-${FSMONITOR_DAEMON_BACKEND}.c)
 
                add_compile_definitions(HAVE_FSMONITOR_OS_SETTINGS)
-               list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-${FSMONITOR_DAEMON_BACKEND}.c)
+               list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-${FSMONITOR_OS_SETTINGS}.c)
        endif()
 endif()
 
index 86a68365a99099e92b35d1a6b04382733c57f9b0..4f0c0a33b85c7dc4611759605e52b747c87ffbe2 100644 (file)
@@ -1338,7 +1338,7 @@ if fsmonitor_backend != ''
     'compat/fsmonitor/fsm-ipc-' + fsmonitor_os + '.c',
     'compat/fsmonitor/fsm-listen-' + fsmonitor_backend + '.c',
     'compat/fsmonitor/fsm-path-utils-' + fsmonitor_backend + '.c',
-    'compat/fsmonitor/fsm-settings-' + fsmonitor_backend + '.c',
+    'compat/fsmonitor/fsm-settings-' + fsmonitor_os + '.c',
   ]
 endif
 build_options_config.set_quoted('FSMONITOR_DAEMON_BACKEND', fsmonitor_backend)