diff options
| author | 2026-03-06 11:54:21 +0800 | |
|---|---|---|
| committer | 2026-03-06 11:55:56 +0800 | |
| commit | c62c5544fa23378843a3383a9dcd4494e5ea33bc (patch) | |
| tree | 8b825a36767fe0ba3fb44f27cb634047c4c0318f /reachability/ancestor.go | |
| parent | format/pack/ingest: Fix delta apply import (diff) | |
| signature | No signature | |
format/commitgraph: Split into ./read and ./ v0.1.60
Diffstat (limited to 'reachability/ancestor.go')
| -rw-r--r-- | reachability/ancestor.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/reachability/ancestor.go b/reachability/ancestor.go index 5c978bf4..98a2c080 100644 --- a/reachability/ancestor.go +++ b/reachability/ancestor.go @@ -3,7 +3,7 @@ package reachability import ( "errors" - "codeberg.org/lindenii/furgit/format/commitgraph" + commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" "codeberg.org/lindenii/furgit/objectid" ) @@ -57,7 +57,7 @@ func (r *Reachability) isAncestorGraph(ancestor, descendant objectid.ObjectID) ( ancestorPos, err := r.graph.Lookup(ancestor) if err != nil { - var notFound *commitgraph.ErrNotFound + var notFound *commitgraphread.ErrNotFound if errors.As(err, ¬Found) { return false, false, nil } @@ -67,7 +67,7 @@ func (r *Reachability) isAncestorGraph(ancestor, descendant objectid.ObjectID) ( descendantPos, err := r.graph.Lookup(descendant) if err != nil { - var notFound *commitgraph.ErrNotFound + var notFound *commitgraphread.ErrNotFound if errors.As(err, ¬Found) { return false, false, nil } @@ -81,8 +81,8 @@ func (r *Reachability) isAncestorGraph(ancestor, descendant objectid.ObjectID) ( } ancestorGeneration := ancestorCommit.GenerationV2 - stack := []commitgraph.Position{descendantPos} - visited := make(map[commitgraph.Position]struct{}, 64) + stack := []commitgraphread.Position{descendantPos} + visited := make(map[commitgraphread.Position]struct{}, 64) for len(stack) > 0 { pos := stack[len(stack)-1] |
