aboutsummaryrefslogtreecommitdiff
path: root/commitquery/queries_ancestor.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 14:42:13 +0000
committerGravatar Runxi Yu2026-03-29 14:47:04 +0000
commitdf73a4c6f1b58075316ba7449fbfb127b9fbb79d (patch)
tree62fee259ec037410b06419ee3ac9c2c189c35ab3 /commitquery/queries_ancestor.go
parentinternal/priorityqueue: Update docs (diff)
signatureNo signature
commitquery: Reorganize
Diffstat (limited to 'commitquery/queries_ancestor.go')
-rw-r--r--commitquery/queries_ancestor.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/commitquery/queries_ancestor.go b/commitquery/queries_ancestor.go
deleted file mode 100644
index e2c955c6..00000000
--- a/commitquery/queries_ancestor.go
+++ /dev/null
@@ -1,14 +0,0 @@
-package commitquery
-
-import objectid "codeberg.org/lindenii/furgit/object/id"
-
-// IsAncestor reports whether ancestor is reachable from descendant through
-// commit parent edges.
-//
-// Both inputs are peeled through annotated tags before commit traversal.
-func (queries *Queries) IsAncestor(ancestor, descendant objectid.ObjectID) (bool, error) {
- query := queries.acquire()
- defer queries.release(query)
-
- return query.IsAncestor(ancestor, descendant)
-}