aboutsummaryrefslogtreecommitdiff
path: root/commitquery
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-27 09:08:40 +0000
committerGravatar Runxi Yu2026-03-27 09:08:40 +0000
commitd7e90798170265b37ea5f980f94ca310cfda3180 (patch)
tree89921ca5cb6dd5aaefa3c0ae72352381261cb1e6 /commitquery
parentCONTRIBUTING: Fix submitting changes deadlines (diff)
signatureNo signature
object/store: Rename from object/storer
Diffstat (limited to 'commitquery')
-rw-r--r--commitquery/ancestor_unit_test.go2
-rw-r--r--commitquery/context.go6
-rw-r--r--commitquery/mergebase_unit_test.go2
-rw-r--r--commitquery/oid.go4
4 files changed, 7 insertions, 7 deletions
diff --git a/commitquery/ancestor_unit_test.go b/commitquery/ancestor_unit_test.go
index 1edee5b6..cab0cc2f 100644
--- a/commitquery/ancestor_unit_test.go
+++ b/commitquery/ancestor_unit_test.go
@@ -8,7 +8,7 @@ import (
giterrors "codeberg.org/lindenii/furgit/errors"
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/object/storer/memory"
+ "codeberg.org/lindenii/furgit/object/store/memory"
objecttree "codeberg.org/lindenii/furgit/object/tree"
objecttype "codeberg.org/lindenii/furgit/object/type"
diff --git a/commitquery/context.go b/commitquery/context.go
index 74f094b1..35fc47cf 100644
--- a/commitquery/context.go
+++ b/commitquery/context.go
@@ -4,13 +4,13 @@ package commitquery
import (
commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
objectid "codeberg.org/lindenii/furgit/object/id"
- objectstorer "codeberg.org/lindenii/furgit/object/storer"
+ objectstore "codeberg.org/lindenii/furgit/object/store"
)
// Query owns the mutable node arena for commit-domain queries over one object
// store.
type Query struct {
- store objectstorer.Store
+ store objectstore.Store
graph *commitgraphread.Reader
nodes []node
@@ -24,7 +24,7 @@ type Query struct {
// New builds one reusable commit query arena over one object store and optional
// commit-graph reader.
-func New(store objectstorer.Store, graph *commitgraphread.Reader) *Query {
+func New(store objectstore.Store, graph *commitgraphread.Reader) *Query {
return &Query{
store: store,
graph: graph,
diff --git a/commitquery/mergebase_unit_test.go b/commitquery/mergebase_unit_test.go
index fc2981b1..2ce9795c 100644
--- a/commitquery/mergebase_unit_test.go
+++ b/commitquery/mergebase_unit_test.go
@@ -11,7 +11,7 @@ import (
giterrors "codeberg.org/lindenii/furgit/errors"
"codeberg.org/lindenii/furgit/internal/testgit"
objectid "codeberg.org/lindenii/furgit/object/id"
- "codeberg.org/lindenii/furgit/object/storer/memory"
+ "codeberg.org/lindenii/furgit/object/store/memory"
"codeberg.org/lindenii/furgit/object/tree"
objecttype "codeberg.org/lindenii/furgit/object/type"
)
diff --git a/commitquery/oid.go b/commitquery/oid.go
index 1349492b..22d41a82 100644
--- a/commitquery/oid.go
+++ b/commitquery/oid.go
@@ -8,7 +8,7 @@ import (
"codeberg.org/lindenii/furgit/internal/peel"
objectcommit "codeberg.org/lindenii/furgit/object/commit"
objectid "codeberg.org/lindenii/furgit/object/id"
- objectstorer "codeberg.org/lindenii/furgit/object/storer"
+ objectstore "codeberg.org/lindenii/furgit/object/store"
objecttype "codeberg.org/lindenii/furgit/object/type"
)
@@ -70,7 +70,7 @@ func (query *Query) loadByOID(idx nodeIndex) error {
ty, content, err := query.store.ReadBytesContent(id)
if err != nil {
- if stderrors.Is(err, objectstorer.ErrObjectNotFound) {
+ if stderrors.Is(err, objectstore.ErrObjectNotFound) {
return &giterrors.ObjectMissingError{OID: id}
}