aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 12:24:49 +0000
committerGravatar Runxi Yu2026-03-30 12:24:49 +0000
commit30bc08762a5aa33b9f47af304d51ef3878752b2f (patch)
tree911aeade437eaf89d0c8a35d262bc69e7c560a69 /internal
parentobject/tree: Regular files and types (diff)
signatureNo signature
object/store: ReadingStore -> Reader
Diffstat (limited to 'internal')
-rw-r--r--internal/peel/peel.go2
-rw-r--r--internal/testgit/repo_open_object_store.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/peel/peel.go b/internal/peel/peel.go
index 41d84e10..b4af5a5b 100644
--- a/internal/peel/peel.go
+++ b/internal/peel/peel.go
@@ -12,7 +12,7 @@ import (
)
// ToCommit peels annotated tags transitively until a commit is reached.
-func ToCommit(store objectstore.ReadingStore, id objectid.ObjectID) (objectid.ObjectID, error) {
+func ToCommit(store objectstore.Reader, id objectid.ObjectID) (objectid.ObjectID, error) {
for {
ty, _, err := store.ReadHeader(id)
if err != nil {
diff --git a/internal/testgit/repo_open_object_store.go b/internal/testgit/repo_open_object_store.go
index a001d767..42dc370c 100644
--- a/internal/testgit/repo_open_object_store.go
+++ b/internal/testgit/repo_open_object_store.go
@@ -11,7 +11,7 @@ import (
// the caller.
//
//nolint:ireturn
-func (testRepo *TestRepo) OpenObjectStore(tb testing.TB) objectstore.ReadingStore {
+func (testRepo *TestRepo) OpenObjectStore(tb testing.TB) objectstore.Reader {
tb.Helper()
root := testRepo.OpenGitRoot(tb)