aboutsummaryrefslogtreecommitdiff
path: root/commitquery/node_parents.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/node_parents.go
parentinternal/priorityqueue: Update docs (diff)
signatureNo signature
commitquery: Reorganize
Diffstat (limited to 'commitquery/node_parents.go')
-rw-r--r--commitquery/node_parents.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/commitquery/node_parents.go b/commitquery/node_parents.go
new file mode 100644
index 00000000..a98a774f
--- /dev/null
+++ b/commitquery/node_parents.go
@@ -0,0 +1,6 @@
+package commitquery
+
+// parents returns resolved parent node indices for one internal node.
+func (query *query) parents(idx nodeIndex) []nodeIndex {
+ return query.nodes[idx].parents
+}