http.h: remove unnecessary include

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>

Elijah Newren committed Dec 23, 2023 at 17:14 UTC f25e65e0fea5cc45559079d9a84386efe2eb0c0c
4 files changed +3 -1
http-fetch.c
+1
@@ -6,6 +6,7 @@
6 #include "walker.h"
7 #include "setup.h"
8 #include "strvec.h"
9 +#include "url.h"
10 #include "urlmatch.h"
11 #include "trace2.h"
12
http-push.c
+1
@@ -15,6 +15,7 @@
15 #include "strvec.h"
16 #include "tree.h"
17 #include "tree-walk.h"
18 +#include "url.h"
19 #include "packfile.h"
20 #include "object-store-ll.h"
21 #include "commit-reach.h"
http.h
-1
@@ -10,7 +10,6 @@ struct packed_git;
10
11 #include "strbuf.h"
12 #include "remote.h"
13 -#include "url.h"
13
14 #define DEFAULT_MAX_REQUESTS 5
15
remote-curl.c
+1
@@ -21,6 +21,7 @@
21 #include "quote.h"
22 #include "trace2.h"
23 #include "transport.h"
24 +#include "url.h"
25 #include "write-or-die.h"
26
27 static struct remote *remote;