aboutsummaryrefslogtreecommitdiff
path: root/reachability/walk_expand_commits.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-25 14:49:17 +0000
committerGravatar Runxi Yu2026-03-25 15:02:22 +0000
commit7847657e0820af98120031f719b8ede635ad8c07 (patch)
tree8c4439c78f72f1382edc809b49be33115847b6e7 /reachability/walk_expand_commits.go
parentobject: Remove type.go (diff)
signatureNo signature
object: Split each object type into its own package v0.1.108
Diffstat (limited to 'reachability/walk_expand_commits.go')
-rw-r--r--reachability/walk_expand_commits.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/reachability/walk_expand_commits.go b/reachability/walk_expand_commits.go
index f02da944..8cb93279 100644
--- a/reachability/walk_expand_commits.go
+++ b/reachability/walk_expand_commits.go
@@ -4,7 +4,8 @@ import (
"fmt"
"codeberg.org/lindenii/furgit/errors"
- "codeberg.org/lindenii/furgit/object"
+ objectcommit "codeberg.org/lindenii/furgit/object/commit"
+ objecttag "codeberg.org/lindenii/furgit/object/tag"
objecttype "codeberg.org/lindenii/furgit/object/type"
)
@@ -39,7 +40,7 @@ func (walk *Walk) expandCommits(item walkItem) ([]walkItem, error) {
return nil, err
}
- commit, err := object.ParseCommit(content, item.id.Algorithm())
+ commit, err := objectcommit.Parse(content, item.id.Algorithm())
if err != nil {
return nil, err
}
@@ -56,7 +57,7 @@ func (walk *Walk) expandCommits(item walkItem) ([]walkItem, error) {
return nil, err
}
- tag, err := object.ParseTag(content, item.id.Algorithm())
+ tag, err := objecttag.Parse(content, item.id.Algorithm())
if err != nil {
return nil, err
}