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>
This commit is contained in:
Elijah Newren 2023-03-21 06:26:06 +00:00 committed by Junio C Hamano
parent e38da487cc
commit 61a7b98264
18 changed files with 5 additions and 21 deletions

View File

@ -1,7 +1,6 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "line-range.h"
#include "cache.h"
#include "hex.h"
#include "tag.h"
#include "blob.h"

2
path.c
View File

@ -1,7 +1,7 @@
/*
* Utilities for paths and pathnames
*/
#include "cache.h"
#include "git-compat-util.h"
#include "abspath.h"
#include "environment.h"
#include "gettext.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "advice.h"
#include "config.h"
#include "setup.h"

View File

@ -1,7 +1,6 @@
#include "cache.h"
#include "test-tool.h"
#include "bloom.h"
#include "hex.h"
#include "test-tool.h"
#include "commit.h"
#include "setup.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "config.h"
#include "setup.h"
#include "string-list.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "hex.h"
#include "strbuf.h"
#include "object-store.h"

View File

@ -1,6 +1,5 @@
#include "cache.h"
#include "hex.h"
#include "test-tool.h"
#include "hex.h"
#include "repository.h"
#include "object-store.h"
#include "setup.h"

View File

@ -1,11 +1,10 @@
#include "cache.h"
#include "test-tool.h"
#include "connect.h"
#include "hex.h"
#include "parse-options.h"
#include "pkt-line.h"
#include "setup.h"
#include "sigchain.h"
#include "test-tool.h"
static const char *proc_receive_usage[] = {
"test-tool proc-receive [<options>]",

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "commit-graph.h"
#include "repository.h"
#include "object-store.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "hex.h"
#include "refs.h"
#include "setup.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "commit-graph.h"
#include "commit.h"
#include "config.h"

View File

@ -9,7 +9,6 @@
*/
#include "test-tool.h"
#include "cache.h"
#include "commit.h"
#include "diff.h"
#include "revision.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "gettext.h"
#include "parse-options.h"
#include "serve.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "setup.h"
#include "submodule-config.h"

View File

@ -1,6 +1,5 @@
#include "test-tool.h"
#include "test-tool-utils.h"
#include "cache.h"
#include "parse-options.h"
#include "remote.h"
#include "setup.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "run-command.h"
#include "setup.h"

View File

@ -1,5 +1,4 @@
#include "test-tool.h"
#include "cache.h"
#include "setup.h"
#include "userdiff.h"
#include "config.h"

View File

@ -1,4 +1,4 @@
#include "cache.h"
#include "git-compat-util.h"
#include "abspath.h"
#include "alloc.h"
#include "environment.h"