]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fsmonitor--daemon.h: remove unnecessary includes
authorElijah Newren <newren@gmail.com>
Sat, 23 Dec 2023 17:14:53 +0000 (17:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Dec 2023 20:04:32 +0000 (12:04 -0800)
The unnecessary include in the header transitively pulled in some
other headers actually needed by source files, though.  Have those
source files explicitly include the headers they need.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsmonitor--daemon.c
compat/fsmonitor/fsm-health-win32.c
compat/fsmonitor/fsm-listen-darwin.c
compat/fsmonitor/fsm-listen-win32.c
fsmonitor--daemon.h

index 5d01db5c029e2bf967ab96795bf0b3aef5b6102e..7260604534f25e79eb5b95a78df21698ea034854 100644 (file)
@@ -1,6 +1,7 @@
 #include "builtin.h"
 #include "abspath.h"
 #include "config.h"
+#include "dir.h"
 #include "environment.h"
 #include "gettext.h"
 #include "parse-options.h"
@@ -14,6 +15,7 @@
 #include "simple-ipc.h"
 #include "khash.h"
 #include "pkt-line.h"
+#include "run-command.h"
 #include "trace.h"
 #include "trace2.h"
 
index 2d4e245beb18b8f3573ea33526274d3f8f45b675..2aa8c219acee4def1711e5f84d45571e34be4e16 100644 (file)
@@ -4,6 +4,7 @@
 #include "fsm-health.h"
 #include "fsmonitor--daemon.h"
 #include "gettext.h"
+#include "simple-ipc.h"
 
 /*
  * Every minute wake up and test our health.
index 11b56d3ef12ffb52ef291e95e2b8e39823e77f0f..2fc67442eb5e87e0b006f997fd6b597f9a919b99 100644 (file)
@@ -29,6 +29,7 @@
 #include "fsmonitor--daemon.h"
 #include "fsmonitor-path-utils.h"
 #include "gettext.h"
+#include "simple-ipc.h"
 #include "string-list.h"
 #include "trace.h"
 
index 90a2412284414e0675bc7603e4d13850d640a695..5a21dade7b8659aa4d6e9e3c697a7e124ef31ccb 100644 (file)
@@ -4,6 +4,7 @@
 #include "fsm-listen.h"
 #include "fsmonitor--daemon.h"
 #include "gettext.h"
+#include "simple-ipc.h"
 #include "trace2.h"
 
 /*
index 673f80d2aad0d4a2e0dff1f7f114f2fc7b5b653c..5cbbec8d940ba75a541dc0398a930f8f393562b6 100644 (file)
@@ -3,9 +3,7 @@
 
 #ifdef HAVE_FSMONITOR_DAEMON_BACKEND
 
-#include "dir.h"
-#include "run-command.h"
-#include "simple-ipc.h"
+#include "hashmap.h"
 #include "thread-utils.h"
 #include "fsmonitor-path-utils.h"