Fast implementation of Git in pure Go codeberg.org/lindenii/furgit
git go
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

ref/store: Simplify names

Runxi Yu da676456 1999e34a

+27 -27
+1 -1
network/receivepack/hook.go
··· 34 34 // 35 35 // Labels: Life-Call. 36 36 type HookRequest struct { 37 - Refs refstore.ReadingStore 37 + Refs refstore.Reader 38 38 ExistingObjects objectstore.Reader 39 39 // QuarantinedObjects exposes quarantined objects for this push. 40 40 //
+3 -3
network/receivepack/options.go
··· 22 22 Algorithm objectid.Algorithm 23 23 // Refs is the reference store visible to the push. 24 24 Refs interface { 25 - refstore.ReadingStore 26 - refstore.TransactionalStore 27 - refstore.BatchStore 25 + refstore.Reader 26 + refstore.Transactioner 27 + refstore.Batcher 28 28 } 29 29 // ExistingObjects is the object store visible to the push before any newly 30 30 // uploaded quarantined objects are promoted.
+1 -1
network/receivepack/service/hook.go
··· 30 30 // 31 31 // Labels: Life-Call. 32 32 type HookRequest struct { 33 - Refs refstore.ReadingStore 33 + Refs refstore.Reader 34 34 ExistingObjects objectstore.Reader 35 35 // QuarantinedObjects exposes quarantined objects for this push. 36 36 //
+3 -3
network/receivepack/service/options.go
··· 18 18 // borrowed for the duration of Execute. 19 19 type Options struct { 20 20 Refs interface { 21 - refstore.ReadingStore 22 - refstore.TransactionalStore 23 - refstore.BatchStore 21 + refstore.Reader 22 + refstore.Transactioner 23 + refstore.Batcher 24 24 } 25 25 ExistingObjects objectstore.Reader 26 26 ObjectIngress objectstore.Quarantiner
+2 -2
ref/store/batch_store.go
··· 1 1 package refstore 2 2 3 - // BatchStore begins non-atomic reference batches. 4 - type BatchStore interface { 3 + // Batcher begins non-atomic reference batches. 4 + type Batcher interface { 5 5 // BeginBatch creates one new queued batch. 6 6 // 7 7 // Labels: Life-Parent.
+1 -1
ref/store/chain/chain.go
··· 8 8 // 9 9 // Labels: Close-Caller. 10 10 type Chain struct { 11 - backends []refstore.ReadingStore 11 + backends []refstore.Reader 12 12 }
+2 -2
ref/store/chain/new.go
··· 7 7 // The provided backends must be non-nil and distinct. 8 8 // 9 9 // Labels: Deps-Borrowed, Life-Parent. 10 - func New(backends ...refstore.ReadingStore) *Chain { 10 + func New(backends ...refstore.Reader) *Chain { 11 11 return &Chain{ 12 - backends: append([]refstore.ReadingStore(nil), backends...), 12 + backends: append([]refstore.Reader(nil), backends...), 13 13 } 14 14 }
+3 -3
ref/store/files/store.go
··· 25 25 } 26 26 27 27 var ( 28 - _ refstore.ReadingStore = (*Store)(nil) 29 - _ refstore.TransactionalStore = (*Store)(nil) 30 - _ refstore.BatchStore = (*Store)(nil) 28 + _ refstore.Reader = (*Store)(nil) 29 + _ refstore.Transactioner = (*Store)(nil) 30 + _ refstore.Batcher = (*Store)(nil) 31 31 )
+2 -2
ref/store/reading.go
··· 2 2 3 3 import "codeberg.org/lindenii/furgit/ref" 4 4 5 - // ReadingStore reads Git references. 5 + // Reader reads Git references. 6 6 // 7 7 // Labels: MT-Safe. 8 - type ReadingStore interface { 8 + type Reader interface { 9 9 // Resolve resolves a reference name to either a symbolic or detached ref. 10 10 // 11 11 // Implementations should return value forms ([ref.Detached] or [ref.Symbolic]),
+3 -3
ref/store/transactional_store.go
··· 1 1 package refstore 2 2 3 - // TransactionalStore begins atomic reference transactions. 3 + // Transactioner begins atomic reference transactions. 4 4 // 5 5 // Not every readable reference store is writable. Implementations should only 6 - // satisfy TransactionalStore when they can stage and commit reference updates 6 + // satisfy Transactioner when they can stage and commit reference updates 7 7 // atomically within that backend. 8 - type TransactionalStore interface { 8 + type Transactioner interface { 9 9 // BeginTransaction creates one new mutable transaction. 10 10 // 11 11 // Labels: Life-Parent.
+3 -3
repository/refs.go
··· 12 12 // 13 13 //nolint:ireturn 14 14 func (repo *Repository) Refs() interface { 15 - refstore.ReadingStore 16 - refstore.TransactionalStore 17 - refstore.BatchStore 15 + refstore.Reader 16 + refstore.Transactioner 17 + refstore.Batcher 18 18 } { 19 19 return repo.refs 20 20 }
+3 -3
repository/repository.go
··· 42 42 commitQueries *commitquery.Queries 43 43 refRoot *os.Root 44 44 refs interface { 45 - refstore.ReadingStore 46 - refstore.TransactionalStore 47 - refstore.BatchStore 45 + refstore.Reader 46 + refstore.Transactioner 47 + refstore.Batcher 48 48 } 49 49 }