]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pkt-line.h: remove unnecessary include
authorElijah Newren <newren@gmail.com>
Sat, 23 Dec 2023 17:14:56 +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>
pkt-line.c
pkt-line.h
t/helper/test-pkt-line.c

index af83a19f4df5537da9f1c7a87ea29cb2f5903ea2..236dd3a3ee1522331595959e5b68b4f00c9c6275 100644 (file)
@@ -4,6 +4,7 @@
 #include "gettext.h"
 #include "hex.h"
 #include "run-command.h"
+#include "sideband.h"
 #include "trace.h"
 #include "write-or-die.h"
 
index 954eec87197d3e0c50812879d47e0afbb008baa3..aedef56286f4dde8968af3e4a9a33f05609f4e5c 100644 (file)
@@ -2,7 +2,6 @@
 #define PKTLINE_H
 
 #include "strbuf.h"
-#include "sideband.h"
 
 /*
  * Write a packetized stream, where each line is preceded by
index f4d134a145214f3964e781db949c05cf51f32fc5..77e99c37df0cc00579083b53760accbd0888ffd1 100644 (file)
@@ -1,6 +1,7 @@
 #include "git-compat-util.h"
 #include "test-tool.h"
 #include "pkt-line.h"
+#include "sideband.h"
 #include "write-or-die.h"
 
 static void pack_line(const char *line)