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>
Elijah Newren committed
Dec 23, 2023 at 17:14 UTC
c2c4138c07ca4d5ffc41ace0bfda0f189d3e262e
4 files changed
+3
-1
archive-tar.c
+1
@@ -9,6 +9,7 @@
9
#include "tar.h"
10
#include "archive.h"
11
#include "object-store-ll.h"
12
+#include "strbuf.h"
13
#include "streaming.h"
14
#include "run-command.h"
15
#include "write-or-die.h"
archive-zip.c
+1
@@ -10,6 +10,7 @@
10
#include "streaming.h"
11
#include "utf8.h"
12
#include "object-store-ll.h"
13
+#include "strbuf.h"
14
#include "userdiff.h"
15
#include "write-or-die.h"
16
#include "xdiff-interface.h"
archive.c
+1
@@ -5,6 +5,7 @@
5
#include "environment.h"
6
#include "gettext.h"
7
#include "hex.h"
8
+#include "object-name.h"
9
#include "path.h"
10
#include "pretty.h"
11
#include "setup.h"
archive.h
-1
@@ -1,7 +1,6 @@
1
#ifndef ARCHIVE_H
2
#define ARCHIVE_H
3
4
-#include "object-name.h"
4
#include "pathspec.h"
5
#include "string-list.h"
6