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 <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent eea0e59 commit c2c4138

4 files changed

Lines changed: 3 additions & 1 deletion

File tree

archive-tar.c

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 0 additions & 1 deletion
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)