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

index e8164cca3e459ea0adad9f17cad825208d3ea8d7..958f320ac6ce08a0b0ac856415a173d5fa7c2600 100644 (file)
@@ -3,7 +3,6 @@
 
 #include "config.h"
 #include "submodule.h"
-#include "strbuf.h"
 #include "tree-walk.h"
 
 /**
index 356e0a26c5a0b87714d76f608a917807f69599f5..50c154d0370bfbdd91b70747133977a752f2b504 100644 (file)
@@ -4,6 +4,7 @@
 #include "remote.h"
 #include "repository.h"
 #include "setup.h"
+#include "strbuf.h"
 #include "submodule-config.h"
 #include "submodule.h"