diff options
Diffstat (limited to 'network')
| -rw-r--r-- | network/receivepack/options.go | 6 | ||||
| -rw-r--r-- | network/receivepack/service/options.go | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/network/receivepack/options.go b/network/receivepack/options.go index 146d5837..18d0e9b0 100644 --- a/network/receivepack/options.go +++ b/network/receivepack/options.go @@ -23,7 +23,11 @@ type Options struct { // Algorithm is the repository object ID algorithm used by the push session. Algorithm objectid.Algorithm // Refs is the reference store visible to the push. - Refs refstore.ReadWriteStore + Refs interface { + refstore.ReadingStore + refstore.TransactionalStore + refstore.BatchStore + } // ExistingObjects is the object store visible to the push before any newly // uploaded quarantined objects are promoted. ExistingObjects objectstore.Reader diff --git a/network/receivepack/service/options.go b/network/receivepack/service/options.go index 05d32c6f..4d7b48c8 100644 --- a/network/receivepack/service/options.go +++ b/network/receivepack/service/options.go @@ -25,8 +25,12 @@ type PromotedObjectPermissions struct { // Progress, Hook, and HookIO are optional; when provided they are also // borrowed for the duration of Execute. type Options struct { - Algorithm objectid.Algorithm - Refs refstore.ReadWriteStore + Algorithm objectid.Algorithm + Refs interface { + refstore.ReadingStore + refstore.TransactionalStore + refstore.BatchStore + } ExistingObjects objectstore.Reader CommitGraph *commitgraphread.Reader ObjectsRoot *os.Root |
