From 1c859e362023bcf8f5b211d25b4ecf455f8b460e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 28 Mar 2026 18:06:55 +0000 Subject: network/receivepack: Add commit-graph support --- network/receivepack/options.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'network/receivepack/options.go') 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 -- cgit v1.3.1-10-gc9f91