aboutsummaryrefslogtreecommitdiff
path: root/objectstore/packed/delta_chain.go
diff options
context:
space:
mode:
Diffstat (limited to 'objectstore/packed/delta_chain.go')
-rw-r--r--objectstore/packed/delta_chain.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/objectstore/packed/delta_chain.go b/objectstore/packed/delta_chain.go
new file mode 100644
index 00000000..d473a25c
--- /dev/null
+++ b/objectstore/packed/delta_chain.go
@@ -0,0 +1,13 @@
+package packed
+
+import "codeberg.org/lindenii/furgit/objecttype"
+
+// deltaChain describes how to reconstruct one requested object.
+type deltaChain struct {
+ // baseLoc points to the innermost base object.
+ baseLoc location
+ // baseType is the canonical object type resolved from baseLoc.
+ baseType objecttype.Type
+ // deltas contains delta objects from target down toward base.
+ deltas []deltaNode
+}