]> git.ipfire.org Git - thirdparty/git.git/commitdiff
http.h: remove unnecessary include
authorElijah Newren <newren@gmail.com>
Sat, 23 Dec 2023 17:14:54 +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>
http-fetch.c
http-push.c
http.h
remote-curl.c

index 93695a440ad56715d6ac9f468f214940a72fa906..bec94988bbe563a5048c6dd5905f1a9827193489 100644 (file)
@@ -6,6 +6,7 @@
 #include "walker.h"
 #include "setup.h"
 #include "strvec.h"
+#include "url.h"
 #include "urlmatch.h"
 #include "trace2.h"
 
index 329513270c853d8f1e6d73cda4f5d7787ec64126..b4d0b2a6aa381f4edb1bd890de4a4be1d10ab8fb 100644 (file)
@@ -15,6 +15,7 @@
 #include "strvec.h"
 #include "tree.h"
 #include "tree-walk.h"
+#include "url.h"
 #include "packfile.h"
 #include "object-store-ll.h"
 #include "commit-reach.h"
diff --git a/http.h b/http.h
index 3a409bccd4e6197874a97629c36b050ca923b944..3af19a8bf53e0550fa7c877bb661c34463283adf 100644 (file)
--- a/http.h
+++ b/http.h
@@ -10,7 +10,6 @@ struct packed_git;
 
 #include "strbuf.h"
 #include "remote.h"
-#include "url.h"
 
 #define DEFAULT_MAX_REQUESTS 5
 
index 204feebabe4cadfb9465a34817a690ea6e74daff..55eefa70f97f5a29fab4a08047aacc0073c21ac9 100644 (file)
@@ -21,6 +21,7 @@
 #include "quote.h"
 #include "trace2.h"
 #include "transport.h"
+#include "url.h"
 #include "write-or-die.h"
 
 static struct remote *remote;