aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/read/iterators.go
diff options
context:
space:
mode:
Diffstat (limited to 'format/commitgraph/read/iterators.go')
-rw-r--r--format/commitgraph/read/iterators.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/format/commitgraph/read/iterators.go b/format/commitgraph/read/iterators.go
index 85c56ff1..0e31f7e5 100644
--- a/format/commitgraph/read/iterators.go
+++ b/format/commitgraph/read/iterators.go
@@ -8,6 +8,8 @@ import (
)
// AllPositions iterates all commit positions in native layer order.
+//
+// Labels: Life-Parent.
func (reader *Reader) AllPositions() iter.Seq[Position] {
return func(yield func(Position) bool) {
for layerIdx := range reader.layers {
@@ -28,6 +30,8 @@ func (reader *Reader) AllPositions() iter.Seq[Position] {
}
// AllOIDs iterates all commit object IDs in native layer order.
+//
+// Labels: Life-Parent.
func (reader *Reader) AllOIDs() iter.Seq[objectid.ObjectID] {
return func(yield func(objectid.ObjectID) bool) {
positions := reader.AllPositions()