treewide: remove cache.h inclusion due to object-name.h changes
Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Apr 11, 2023 at 00:41 UTC
e93fc5d721738de978ef06acb62daa3df3c40625
13 files changed
+10
-13
branch.c
-1
index f29743b161..7df982693a 100644
--- a/branch.c
+++ b/branch.c
@@ -1,5 +1,4 @@
#include "git-compat-util.h"
-#include "cache.h"
#include "advice.h"
#include "config.h"
#include "branch.h"
checkout.c
+2
-1
index 9235073fc0..04238b2713 100644
--- a/checkout.c
+++ b/checkout.c
@@ -1,9 +1,10 @@
-#include "cache.h"
+#include "git-compat-util.h"
#include "object-name.h"
#include "remote.h"
#include "refspec.h"
#include "checkout.h"
#include "config.h"
+#include "strbuf.h"
struct tracking_name_data {
/* const */ char *src_ref;
fmt-merge-msg.c
+1
-1
index 21019c932b..5af0d4715b 100644
--- a/fmt-merge-msg.c
+++ b/fmt-merge-msg.c
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
#include "alloc.h"
#include "config.h"
#include "environment.h"
mailmap.c
+1
-1
index d62d7bf0e7..28d389c1f9 100644
--- a/mailmap.c
+++ b/mailmap.c
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
#include "environment.h"
#include "string-list.h"
#include "mailmap.h"
notes.c
+1
-1
index c07bcbe348..02f1aa39ae 100644
--- a/notes.c
+++ b/notes.c
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
#include "config.h"
#include "environment.h"
#include "hex.h"
refs.c
+1
-1
index 979ed3fbed..d2a98e1c21 100644
--- a/refs.c
+++ b/refs.c
@@ -2,7 +2,7 @@
* The backend-independent part of the reference module.
*/
-#include "cache.h"
+#include "git-compat-util.h"
#include "advice.h"
#include "alloc.h"
#include "config.h"
remote.c
+1
-1
index 3afedce593..2947743d60 100644
--- a/remote.c
+++ b/remote.c
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
setup.c
+1
-1
index 8a297b3cb5..a546da755f 100644
--- a/setup.c
+++ b/setup.c
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
#include "abspath.h"
#include "environment.h"
#include "gettext.h"
strbuf.c
+1
-1
index 1b93d9d3c4..b2e3735ba8 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
#include "abspath.h"
#include "alloc.h"
#include "environment.h"
t/helper/test-oidmap.c
-1
index bf4fcfe6ef..de6ab77fda 100644
--- a/t/helper/test-oidmap.c
+++ b/t/helper/test-oidmap.c
@@ -1,5 +1,4 @@
#include "test-tool.h"
-#include "cache.h"
#include "hex.h"
#include "object-name.h"
#include "oidmap.h"
t/helper/test-reach.c
-1
index d4fa33ae75..5b6f217441 100644
--- a/t/helper/test-reach.c
+++ b/t/helper/test-reach.c
@@ -1,5 +1,4 @@
#include "test-tool.h"
-#include "cache.h"
#include "alloc.h"
#include "commit.h"
#include "commit-reach.h"
t/helper/test-submodule-config.c
-1
index 4758c8654e..c7c7fdbea9 100644
--- a/t/helper/test-submodule-config.c
+++ b/t/helper/test-submodule-config.c
@@ -1,5 +1,4 @@
#include "test-tool.h"
-#include "cache.h"
#include "config.h"
#include "object-name.h"
#include "setup.h"
transport-helper.c
+1
-1
index ca8bec04bb..6b816940dc 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
#include "transport.h"
#include "quote.h"
#include "run-command.h"