diff options
| author | Elijah Newren <newren@gmail.com> | 2023-12-23 17:14:54 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-12-26 12:04:32 -0800 |
| commit | f25e65e0fea5cc45559079d9a84386efe2eb0c0c (patch) | |
| tree | a325edb130c6906a7030a8ab8aa33d63639f6217 | |
| parent | 31d20faa90c30aa90abc2227cbf65b67f81e98e2 (diff) | |
| download | git-f25e65e0fea5cc45559079d9a84386efe2eb0c0c.tar.gz | |
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>
| -rw-r--r-- | http-fetch.c | 1 | ||||
| -rw-r--r-- | http-push.c | 1 | ||||
| -rw-r--r-- | http.h | 1 | ||||
| -rw-r--r-- | remote-curl.c | 1 |
4 files changed, 3 insertions, 1 deletions
diff --git a/http-fetch.c b/http-fetch.c index 93695a440a..bec94988bb 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -6,6 +6,7 @@ #include "walker.h" #include "setup.h" #include "strvec.h" +#include "url.h" #include "urlmatch.h" #include "trace2.h" diff --git a/http-push.c b/http-push.c index 329513270c..b4d0b2a6aa 100644 --- a/http-push.c +++ b/http-push.c @@ -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" @@ -10,7 +10,6 @@ struct packed_git; #include "strbuf.h" #include "remote.h" -#include "url.h" #define DEFAULT_MAX_REQUESTS 5 diff --git a/remote-curl.c b/remote-curl.c index 204feebabe..55eefa70f9 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -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; |
