···2323 // Algorithm is the repository object ID algorithm used by the push session.
2424 Algorithm objectid.Algorithm
2525 // Refs is the reference store visible to the push.
2626- Refs refstore.ReadWriteStore
2626+ Refs interface {
2727+ refstore.ReadingStore
2828+ refstore.TransactionalStore
2929+ refstore.BatchStore
3030+ }
2731 // ExistingObjects is the object store visible to the push before any newly
2832 // uploaded quarantined objects are promoted.
2933 ExistingObjects objectstore.Reader
+6-2
network/receivepack/service/options.go
···2525// Progress, Hook, and HookIO are optional; when provided they are also
2626// borrowed for the duration of Execute.
2727type Options struct {
2828- Algorithm objectid.Algorithm
2929- Refs refstore.ReadWriteStore
2828+ Algorithm objectid.Algorithm
2929+ Refs interface {
3030+ refstore.ReadingStore
3131+ refstore.TransactionalStore
3232+ refstore.BatchStore
3333+ }
3034 ExistingObjects objectstore.Reader
3135 CommitGraph *commitgraphread.Reader
3236 ObjectsRoot *os.Root