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 <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Mar 21, 2023 at 06:26 UTC
61a7b982647bb64779df9be66d9b13ecac811924
18 files changed
+5
-21
line-log.c
-1
@@ -1,7 +1,6 @@
1
#include "git-compat-util.h"
2
#include "alloc.h"
3
#include "line-range.h"
4
-#include "cache.h"
4
#include "hex.h"
5
#include "tag.h"
6
#include "blob.h"
path.c
+1
-1
@@ -1,7 +1,7 @@
1
/*
2
* Utilities for paths and pathnames
3
*/
4
-#include "cache.h"
4
+#include "git-compat-util.h"
5
#include "abspath.h"
6
#include "environment.h"
7
#include "gettext.h"
t/helper/test-advise.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "advice.h"
3
#include "config.h"
4
#include "setup.h"
t/helper/test-bloom.c
+1
-2
@@ -1,7 +1,6 @@
1
-#include "cache.h"
1
+#include "test-tool.h"
2
#include "bloom.h"
3
#include "hex.h"
4
-#include "test-tool.h"
4
#include "commit.h"
5
#include "setup.h"
6
t/helper/test-config.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "config.h"
3
#include "setup.h"
4
#include "string-list.h"
t/helper/test-pack-mtimes.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "hex.h"
3
#include "strbuf.h"
4
#include "object-store.h"
t/helper/test-partial-clone.c
+1
-2
@@ -1,6 +1,5 @@
1
-#include "cache.h"
2
-#include "hex.h"
1
#include "test-tool.h"
2
+#include "hex.h"
3
#include "repository.h"
4
#include "object-store.h"
5
#include "setup.h"
t/helper/test-proc-receive.c
+1
-2
@@ -1,11 +1,10 @@
1
-#include "cache.h"
1
+#include "test-tool.h"
2
#include "connect.h"
3
#include "hex.h"
4
#include "parse-options.h"
5
#include "pkt-line.h"
6
#include "setup.h"
7
#include "sigchain.h"
8
-#include "test-tool.h"
8
9
static const char *proc_receive_usage[] = {
10
"test-tool proc-receive [<options>]",
t/helper/test-read-graph.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "commit-graph.h"
3
#include "repository.h"
4
#include "object-store.h"
t/helper/test-ref-store.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "hex.h"
3
#include "refs.h"
4
#include "setup.h"
t/helper/test-repository.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "commit-graph.h"
3
#include "commit.h"
4
#include "config.h"
t/helper/test-revision-walking.c
-1
@@ -9,7 +9,6 @@
9
*/
10
11
#include "test-tool.h"
12
-#include "cache.h"
12
#include "commit.h"
13
#include "diff.h"
14
#include "revision.h"
t/helper/test-serve-v2.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "gettext.h"
3
#include "parse-options.h"
4
#include "serve.h"
t/helper/test-submodule-nested-repo-config.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "setup.h"
3
#include "submodule-config.h"
4
t/helper/test-submodule.c
-1
@@ -1,6 +1,5 @@
1
#include "test-tool.h"
2
#include "test-tool-utils.h"
3
-#include "cache.h"
3
#include "parse-options.h"
4
#include "remote.h"
5
#include "setup.h"
t/helper/test-subprocess.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "run-command.h"
3
#include "setup.h"
4
t/helper/test-userdiff.c
-1
@@ -1,5 +1,4 @@
1
#include "test-tool.h"
2
-#include "cache.h"
2
#include "setup.h"
3
#include "userdiff.h"
4
#include "config.h"
worktree.c
+1
-1
@@ -1,4 +1,4 @@
1
-#include "cache.h"
1
+#include "git-compat-util.h"
2
#include "abspath.h"
3
#include "alloc.h"
4
#include "environment.h"