ref: 677887b7aa3d673bd92a7876f3987cd2f86cb43d
parent: 13a26b4e7e0cfd7f5aab3d0666e1ff3f3bbf9514
author: Runxi Yu <me@runxiyu.org>
date: Fri Feb 20 21:30:23 EST 2026
objectstore: Rename ObjectStore to Store
--- a/objectstore/chain/chain.go
+++ b/objectstore/chain/chain.go
@@ -13,13 +13,13 @@
// Chain queries multiple object databases in order.
type Chain struct {- backends []objectstore.ObjectStore
+ backends []objectstore.Store
}
// New creates an ordered object database chain.
-func New(backends ...objectstore.ObjectStore) *Chain {+func New(backends ...objectstore.Store) *Chain { return &Chain{- backends: append([]objectstore.ObjectStore(nil), backends...),
+ backends: append([]objectstore.Store(nil), backends...),
}
}
--- a/objectstore/objectstore.go
+++ b/objectstore/objectstore.go
@@ -13,8 +13,8 @@
// TODO: This might need to be an interface or otherwise be able to encapsulate multiple concrete backends'
var ErrObjectNotFound = errors.New("objectstore: object not found")-// ObjectStore reads Git objects by object ID.
-type ObjectStore interface {+// Store reads Git objects by object ID.
+type Store interface {// ReadBytesFull reads a full serialized object as "type size\\x00content".
// If hashed with the same algorithm it MUST match the object ID.
ReadBytesFull(id objectid.ObjectID) ([]byte, error)
--
⑨