aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-04-15 11:38:18 +0200
committerJunio C Hamano <gitster@pobox.com>2025-04-15 08:24:36 -0700
commitd9f517d051d1008178cb6c809b5f906d0905508f (patch)
treeb830a64b23f00fbfde86c651bf492a773023147a /builtin
parent632b5e3ee274a2012a88bc32af2d9cf04c5bd363 (diff)
downloadgit-d9f517d051d1008178cb6c809b5f906d0905508f.tar.xz
object-file: split out functions relating to object store subsystem
While we have the "object-store.h" header, most of the functionality for object stores is actually hosted in "object-file.c". This makes it hard to find relevant functions and causes us to mix up concerns. Split out functions relating to the object store subsystem into a new "object-store.c" file. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/checkout.c1
-rw-r--r--builtin/merge-file.c1
-rw-r--r--builtin/mktree.c1
-rw-r--r--builtin/notes.c1
-rw-r--r--builtin/receive-pack.c1
-rw-r--r--builtin/tag.c1
-rw-r--r--builtin/unpack-file.c1
-rw-r--r--builtin/unpack-objects.c1
8 files changed, 8 insertions, 0 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 2e7486cf65..3e68623838 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -18,6 +18,7 @@
#include "lockfile.h"
#include "mem-pool.h"
#include "merge-recursive.h"
+#include "object-file.h"
#include "object-name.h"
#include "object-store-ll.h"
#include "parse-options.h"
diff --git a/builtin/merge-file.c b/builtin/merge-file.c
index 7e315f374b..2b16b10d2c 100644
--- a/builtin/merge-file.c
+++ b/builtin/merge-file.c
@@ -5,6 +5,7 @@
#include "abspath.h"
#include "diff.h"
#include "hex.h"
+#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "config.h"
diff --git a/builtin/mktree.c b/builtin/mktree.c
index 3c16faa40e..0644f95116 100644
--- a/builtin/mktree.c
+++ b/builtin/mktree.c
@@ -11,6 +11,7 @@
#include "strbuf.h"
#include "tree.h"
#include "parse-options.h"
+#include "object-file.h"
#include "object-store-ll.h"
static struct treeent {
diff --git a/builtin/notes.c b/builtin/notes.c
index ff61ec5f2d..0dbc233752 100644
--- a/builtin/notes.c
+++ b/builtin/notes.c
@@ -14,6 +14,7 @@
#include "gettext.h"
#include "hex.h"
#include "notes.h"
+#include "object-file.h"
#include "object-name.h"
#include "object-store-ll.h"
#include "path.h"
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index b3e2a9d0c6..ee51bd76f6 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -31,6 +31,7 @@
#include "tmp-objdir.h"
#include "oidset.h"
#include "packfile.h"
+#include "object-file.h"
#include "object-name.h"
#include "object-store-ll.h"
#include "path.h"
diff --git a/builtin/tag.c b/builtin/tag.c
index 7c173535cb..536a01ff3a 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -17,6 +17,7 @@
#include "gettext.h"
#include "hex.h"
#include "refs.h"
+#include "object-file.h"
#include "object-name.h"
#include "object-store-ll.h"
#include "path.h"
diff --git a/builtin/unpack-file.c b/builtin/unpack-file.c
index fb5fcbc40a..b19e5cabd0 100644
--- a/builtin/unpack-file.c
+++ b/builtin/unpack-file.c
@@ -2,6 +2,7 @@
#include "builtin.h"
#include "config.h"
#include "hex.h"
+#include "object-file.h"
#include "object-name.h"
#include "object-store-ll.h"
diff --git a/builtin/unpack-objects.c b/builtin/unpack-objects.c
index 3bbcaf2de9..4078eab925 100644
--- a/builtin/unpack-objects.c
+++ b/builtin/unpack-objects.c
@@ -8,6 +8,7 @@
#include "gettext.h"
#include "git-zlib.h"
#include "hex.h"
+#include "object-file.h"
#include "object-store-ll.h"
#include "object.h"
#include "delta.h"