aboutsummaryrefslogtreecommitdiffstats
path: root/odb.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-11-03 08:42:00 +0100
committerJunio C Hamano <gitster@pobox.com>2025-11-03 12:18:46 -0800
commitece43d9dc70b1717484ee78b66aef4f9390c2b2b (patch)
tree614ea40a974968ea8ddd66da95edf7575295973c /odb.h
parent0cc12dedef2885dba8cf2635697767d394baf91f (diff)
downloadgit-ece43d9dc70b1717484ee78b66aef4f9390c2b2b.tar.gz
object-file: introduce `struct odb_source_loose`
Currently, all state that relates to loose objects is held directly by the `struct odb_source`. Introduce a new `struct odb_source_loose` to hold the state instead so that it is entirely self-contained. This structure will eventually morph into the backend for accessing loose objects. As such, this is part of the refactorings to introduce pluggable object databases. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb.h')
-rw-r--r--odb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb.h b/odb.h
index 2346ffeca8..49b398beda 100644
--- a/odb.h
+++ b/odb.h
@@ -48,6 +48,9 @@ struct odb_source {
/* Object database that owns this object source. */
struct object_database *odb;
+ /* Private state for loose objects. */
+ struct odb_source_loose *loose;
+
/*
* Used to store the results of readdir(3) calls when we are OK
* sacrificing accuracy due to races for speed. That includes