object-store.h: reduce unnecessary includes

Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed Apr 22, 2023 at 20:17 UTC e3d2f20e6f14d3cba641a365a733a615278e9e5e
4 files changed +7 -4
object-file.c
+1
@@ -38,6 +38,7 @@
38 #include "packfile.h"
39 #include "object-file.h"
40 #include "object-store.h"
41 +#include "oidtree.h"
42 #include "promisor-remote.h"
43 #include "setup.h"
44 #include "submodule.h"
object-name.c
+1
@@ -14,6 +14,7 @@
14 #include "remote.h"
15 #include "dir.h"
16 #include "oid-array.h"
17 +#include "oidtree.h"
18 #include "packfile.h"
19 #include "pretty.h"
20 #include "object-store.h"
object-store.h
+4 -4
@@ -2,16 +2,16 @@
2 #define OBJECT_STORE_H
3
4 #include "object.h"
5 -#include "oidmap.h"
5 #include "list.h"
7 -#include "oid-array.h"
8 -#include "strbuf.h"
6 #include "thread-utils.h"
7 #include "khash.h"
8 #include "dir.h"
12 -#include "oidtree.h"
9 #include "oidset.h"
10
11 +struct oidmap;
12 +struct oidtree;
13 +struct strbuf;
14 +
15 struct object_directory {
16 struct object_directory *next;
17
submodule-config.c
+1
@@ -12,6 +12,7 @@
12 #include "object-name.h"
13 #include "object-store.h"
14 #include "parse-options.h"
15 +#include "thread-utils.h"
16 #include "tree-walk.h"
17
18 /*