From 06583274fa64ad6677773bf4ca54f69226388203 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 28 Mar 2026 17:40:02 +0000 Subject: commitquery: Make a reusable engine thingy --- commitquery/ancestor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commitquery/ancestor.go') diff --git a/commitquery/ancestor.go b/commitquery/ancestor.go index 4f182a95..6a43babb 100644 --- a/commitquery/ancestor.go +++ b/commitquery/ancestor.go @@ -6,7 +6,7 @@ import objectid "codeberg.org/lindenii/furgit/object/id" // commit parent edges. // // Both inputs are peeled through annotated tags before commit traversal. -func (query *Query) IsAncestor(ancestor, descendant objectid.ObjectID) (bool, error) { +func (query *query) IsAncestor(ancestor, descendant objectid.ObjectID) (bool, error) { ancestorIdx, err := query.resolveCommitish(ancestor) if err != nil { return false, err @@ -20,7 +20,7 @@ func (query *Query) IsAncestor(ancestor, descendant objectid.ObjectID) (bool, er return query.isAncestor(ancestorIdx, descendantIdx) } -func (query *Query) isAncestor(ancestor, descendant nodeIndex) (bool, error) { +func (query *query) isAncestor(ancestor, descendant nodeIndex) (bool, error) { if ancestor == descendant { return true, nil } -- cgit v1.3.1-10-gc9f91