diff options
author | Elijah Newren <newren@gmail.com> | 2023-12-23 17:14:51 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-12-26 12:04:31 -0800 |
commit | c2c4138c07ca4d5ffc41ace0bfda0f189d3e262e (patch) | |
tree | 3f3fe2b05aff44eee5e79e158e1566fbfdef95fd | |
parent | eea0e59ffbed6e33d171ace5be13cde9faa41639 (diff) | |
download | git-c2c4138c07ca4d5ffc41ace0bfda0f189d3e262e.tar.gz |
archive.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-- | archive-tar.c | 1 | ||||
-rw-r--r-- | archive-zip.c | 1 | ||||
-rw-r--r-- | archive.c | 1 | ||||
-rw-r--r-- | archive.h | 1 |
4 files changed, 3 insertions, 1 deletions
diff --git a/archive-tar.c b/archive-tar.c index 0726996839..f2a0ed7752 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -9,6 +9,7 @@ #include "tar.h" #include "archive.h" #include "object-store-ll.h" +#include "strbuf.h" #include "streaming.h" #include "run-command.h" #include "write-or-die.h" diff --git a/archive-zip.c b/archive-zip.c index 7229e3e454..fd1d3f816d 100644 --- a/archive-zip.c +++ b/archive-zip.c @@ -10,6 +10,7 @@ #include "streaming.h" #include "utf8.h" #include "object-store-ll.h" +#include "strbuf.h" #include "userdiff.h" #include "write-or-die.h" #include "xdiff-interface.h" @@ -5,6 +5,7 @@ #include "environment.h" #include "gettext.h" #include "hex.h" +#include "object-name.h" #include "path.h" #include "pretty.h" #include "setup.h" @@ -1,7 +1,6 @@ #ifndef ARCHIVE_H #define ARCHIVE_H -#include "object-name.h" #include "pathspec.h" #include "string-list.h" |