Skip to content

Commit 61a7b98

Browse files
newrengitster
authored andcommitted
treewide: remove cache.h inclusion due to setup.h changes
By moving several declarations to setup.h, the previous patch made it possible to remove the include of cache.h in several source files. Do so. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e38da48 commit 61a7b98

18 files changed

+5
-21
lines changed

line-log.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "git-compat-util.h"
22
#include "alloc.h"
33
#include "line-range.h"
4-
#include "cache.h"
54
#include "hex.h"
65
#include "tag.h"
76
#include "blob.h"

path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Utilities for paths and pathnames
33
*/
4-
#include "cache.h"
4+
#include "git-compat-util.h"
55
#include "abspath.h"
66
#include "environment.h"
77
#include "gettext.h"

t/helper/test-advise.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "test-tool.h"
2-
#include "cache.h"
32
#include "advice.h"
43
#include "config.h"
54
#include "setup.h"

t/helper/test-bloom.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#include "cache.h"
1+
#include "test-tool.h"
22
#include "bloom.h"
33
#include "hex.h"
4-
#include "test-tool.h"
54
#include "commit.h"
65
#include "setup.h"
76

t/helper/test-config.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "test-tool.h"
2-
#include "cache.h"
32
#include "config.h"
43
#include "setup.h"
54
#include "string-list.h"

t/helper/test-pack-mtimes.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "test-tool.h"
2-
#include "cache.h"
32
#include "hex.h"
43
#include "strbuf.h"
54
#include "object-store.h"

t/helper/test-partial-clone.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#include "cache.h"
2-
#include "hex.h"
31
#include "test-tool.h"
2+
#include "hex.h"
43
#include "repository.h"
54
#include "object-store.h"
65
#include "setup.h"

t/helper/test-proc-receive.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
#include "cache.h"
1+
#include "test-tool.h"
22
#include "connect.h"
33
#include "hex.h"
44
#include "parse-options.h"
55
#include "pkt-line.h"
66
#include "setup.h"
77
#include "sigchain.h"
8-
#include "test-tool.h"
98

109
static const char *proc_receive_usage[] = {
1110
"test-tool proc-receive [<options>]",

t/helper/test-read-graph.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "test-tool.h"
2-
#include "cache.h"
32
#include "commit-graph.h"
43
#include "repository.h"
54
#include "object-store.h"

t/helper/test-ref-store.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "test-tool.h"
2-
#include "cache.h"
32
#include "hex.h"
43
#include "refs.h"
54
#include "setup.h"

0 commit comments

Comments
 (0)