Skip to content

Commit c2c4138

Browse files
newrengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent eea0e59 commit c2c4138

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

archive-tar.c

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "tar.h"
1010
#include "archive.h"
1111
#include "object-store-ll.h"
12+
#include "strbuf.h"
1213
#include "streaming.h"
1314
#include "run-command.h"
1415
#include "write-or-die.h"

archive-zip.c

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "streaming.h"
1111
#include "utf8.h"
1212
#include "object-store-ll.h"
13+
#include "strbuf.h"
1314
#include "userdiff.h"
1415
#include "write-or-die.h"
1516
#include "xdiff-interface.h"

archive.c

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "environment.h"
66
#include "gettext.h"
77
#include "hex.h"
8+
#include "object-name.h"
89
#include "path.h"
910
#include "pretty.h"
1011
#include "setup.h"

archive.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef ARCHIVE_H
22
#define ARCHIVE_H
33

4-
#include "object-name.h"
54
#include "pathspec.h"
65
#include "string-list.h"
76

0 commit comments

Comments
 (0)