aboutsummaryrefslogtreecommitdiff
path: root/objectstore/objectstore.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-21 02:30:23 +0800
committerGravatar Runxi Yu2026-02-21 02:30:23 +0800
commit677887b7aa3d673bd92a7876f3987cd2f86cb43d (patch)
tree062ce585ba2452642ca17c406710d612bbcfa10b /objectstore/objectstore.go
parentrefstore/chain: Add chained refstore implementation (diff)
signatureNo signature
objectstore: Rename ObjectStore to Store
Diffstat (limited to 'objectstore/objectstore.go')
-rw-r--r--objectstore/objectstore.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/objectstore/objectstore.go b/objectstore/objectstore.go
index ea906c70..3d58adf5 100644
--- a/objectstore/objectstore.go
+++ b/objectstore/objectstore.go
@@ -13,8 +13,8 @@ import (
// 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)