diff options
| author | 2026-03-28 17:40:02 +0000 | |
|---|---|---|
| committer | 2026-03-28 17:40:02 +0000 | |
| commit | 06583274fa64ad6677773bf4ca54f69226388203 (patch) | |
| tree | 66354bf972d267bf7ee5135eb7e5b90c31f9fe4d /commitquery/graph_pos.go | |
| parent | format/commitgraph/read: Lifetime (diff) | |
| signature | No signature | |
commitquery: Make a reusable engine thingy
Diffstat (limited to 'commitquery/graph_pos.go')
| -rw-r--r-- | commitquery/graph_pos.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commitquery/graph_pos.go b/commitquery/graph_pos.go index b5bc02d8..6b5118b0 100644 --- a/commitquery/graph_pos.go +++ b/commitquery/graph_pos.go @@ -3,7 +3,7 @@ package commitquery import commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read" // resolveGraphPos resolves one commit-graph position to one internal query node. -func (query *Query) resolveGraphPos(pos commitgraphread.Position) (nodeIndex, error) { +func (query *query) resolveGraphPos(pos commitgraphread.Position) (nodeIndex, error) { idx, ok := query.byGraphPos[pos] if ok { err := query.ensureLoaded(idx) @@ -40,13 +40,13 @@ func (query *Query) resolveGraphPos(pos commitgraphread.Position) (nodeIndex, er } // loadByGraphPos populates one node from a commit-graph position. -func (query *Query) loadByGraphPos(idx nodeIndex) error { +func (query *query) loadByGraphPos(idx nodeIndex) error { pos := query.nodes[idx].graphPos return query.loadCommitAtGraphPos(idx, pos) } -func (query *Query) loadCommitAtGraphPos(idx nodeIndex, pos commitgraphread.Position) error { +func (query *query) loadCommitAtGraphPos(idx nodeIndex, pos commitgraphread.Position) error { commit, err := query.graph.CommitAt(pos) if err != nil { return err |
