aboutsummaryrefslogtreecommitdiff
path: root/network/receivepack/options.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-28 18:06:55 +0000
committerGravatar Runxi Yu2026-03-28 18:06:55 +0000
commit1c859e362023bcf8f5b211d25b4ecf455f8b460e (patch)
treeefe346d96f940ae7d9f5a83f7b3765cc6f5f472e /network/receivepack/options.go
parentreachability: Don't have a separate New for commit graphs (diff)
signatureNo signature
network/receivepack: Add commit-graph support v0.1.122
Diffstat (limited to 'network/receivepack/options.go')
-rw-r--r--network/receivepack/options.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/network/receivepack/options.go b/network/receivepack/options.go
index 9dd57b1f..ca13c623 100644
--- a/network/receivepack/options.go
+++ b/network/receivepack/options.go
@@ -3,6 +3,7 @@ package receivepack
import (
"os"
+ commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
objectid "codeberg.org/lindenii/furgit/object/id"
objectstore "codeberg.org/lindenii/furgit/object/store"
refstore "codeberg.org/lindenii/furgit/ref/store"
@@ -26,6 +27,9 @@ type Options struct {
// ExistingObjects is the object store visible to the push before any newly
// uploaded quarantined objects are promoted.
ExistingObjects objectstore.ReadingStore
+ // CommitGraph is an optional commit-graph snapshot corresponding to
+ // ExistingObjects.
+ CommitGraph *commitgraphread.Reader
// ObjectsRoot is the permanent object storage root beneath which per-push
// quarantine directories are derived.
ObjectsRoot *os.Root