aboutsummaryrefslogtreecommitdiff
path: root/objectstore/packed/delta_chain.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 11:26:21 +0800
committerGravatar Runxi Yu2026-03-06 11:30:56 +0800
commit75c7147c6afcb64a7c8bfedb08f1613c5011ff71 (patch)
treed348e7f4eeec5a905970a7ff14c5c2dd492d944a /objectstore/packed/delta_chain.go
parentformat/commitgraph: Split files (diff)
signatureNo signature
objectstore/packed: Split files
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
+}