]> git.ipfire.org Git - thirdparty/git.git/commitdiff
object-store.h: reduce unnecessary includes
authorElijah Newren <newren@gmail.com>
Sat, 22 Apr 2023 20:17:27 +0000 (20:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2023 19:47:33 +0000 (12:47 -0700)
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c
object-name.c
object-store.h
submodule-config.c

index 8e0df7360ae48297975746adcf1ff86b16d25f5a..921a717d8a5e0bd849f49adf7883f9f6e64e8c87 100644 (file)
@@ -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"
index 5ccbe854b6037aebb2b3c26de2a3c68b5085a9c4..88d839f70bcaafdc2995ff2aa36dd8706dd57140 100644 (file)
@@ -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"
index f9d225783ae6c1730e7e947c81b39f86ebb3c85b..23ea86d3702a3e43ba06dc741344c3645cadbf0e 100644 (file)
@@ -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;
 
index 7fc0812b644ff307e958cb7c172476719b4c3d23..58dfbde9ae5883f755e88809faf3871859024730 100644 (file)
@@ -12,6 +12,7 @@
 #include "object-name.h"
 #include "object-store.h"
 #include "parse-options.h"
+#include "thread-utils.h"
 #include "tree-walk.h"
 
 /*