summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-04-22 20:17:27 +0000
committerJunio C Hamano <gitster@pobox.com>2023-04-24 12:47:33 -0700
commite3d2f20e6f14d3cba641a365a733a615278e9e5e (patch)
tree4baf9c5726a95bede75245aaf54cf5de4a67f639
parentd4a4f9291d63b48b368f79bce3151bee9ca28009 (diff)
downloadgit-e3d2f20e6f14d3cba641a365a733a615278e9e5e.tar.gz
object-store.h: reduce unnecessary includes
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--object-file.c1
-rw-r--r--object-name.c1
-rw-r--r--object-store.h8
-rw-r--r--submodule-config.c1
4 files changed, 7 insertions, 4 deletions
diff --git a/object-file.c b/object-file.c
index 8e0df7360a..921a717d8a 100644
--- a/object-file.c
+++ b/object-file.c
@@ -38,6 +38,7 @@
#include "packfile.h"
#include "object-file.h"
#include "object-store.h"
+#include "oidtree.h"
#include "promisor-remote.h"
#include "setup.h"
#include "submodule.h"
diff --git a/object-name.c b/object-name.c
index 5ccbe854b6..88d839f70b 100644
--- a/object-name.c
+++ b/object-name.c
@@ -14,6 +14,7 @@
#include "remote.h"
#include "dir.h"
#include "oid-array.h"
+#include "oidtree.h"
#include "packfile.h"
#include "pretty.h"
#include "object-store.h"
diff --git a/object-store.h b/object-store.h
index f9d225783a..23ea86d370 100644
--- a/object-store.h
+++ b/object-store.h
@@ -2,16 +2,16 @@
#define OBJECT_STORE_H
#include "object.h"
-#include "oidmap.h"
#include "list.h"
-#include "oid-array.h"
-#include "strbuf.h"
#include "thread-utils.h"
#include "khash.h"
#include "dir.h"
-#include "oidtree.h"
#include "oidset.h"
+struct oidmap;
+struct oidtree;
+struct strbuf;
+
struct object_directory {
struct object_directory *next;
diff --git a/submodule-config.c b/submodule-config.c
index 7fc0812b64..58dfbde9ae 100644
--- a/submodule-config.c
+++ b/submodule-config.c
@@ -12,6 +12,7 @@
#include "object-name.h"
#include "object-store.h"
#include "parse-options.h"
+#include "thread-utils.h"
#include "tree-walk.h"
/*