aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/read/iterators.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 13:26:10 +0000
committerGravatar Runxi Yu2026-03-29 13:26:10 +0000
commit2006e2e07f073a79a84194a304e4958a8739d645 (patch)
treefc08391aa0d4693350ce19541ece804db33dc3fe /format/commitgraph/read/iterators.go
parentTODO: What does git.sr.ht and tangled need (diff)
signatureNo signature
format/commitgraph: Remove MT-ReadSafe; use MT-Safe/Unsafe
Diffstat (limited to 'format/commitgraph/read/iterators.go')
-rw-r--r--format/commitgraph/read/iterators.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/format/commitgraph/read/iterators.go b/format/commitgraph/read/iterators.go
index 0e31f7e5..f8731526 100644
--- a/format/commitgraph/read/iterators.go
+++ b/format/commitgraph/read/iterators.go
@@ -9,7 +9,7 @@ import (
// AllPositions iterates all commit positions in native layer order.
//
-// Labels: Life-Parent.
+// Labels: MT-Safe, Life-Parent.
func (reader *Reader) AllPositions() iter.Seq[Position] {
return func(yield func(Position) bool) {
for layerIdx := range reader.layers {
@@ -31,7 +31,7 @@ func (reader *Reader) AllPositions() iter.Seq[Position] {
// AllOIDs iterates all commit object IDs in native layer order.
//
-// Labels: Life-Parent.
+// Labels: MT-Safe, Life-Parent.
func (reader *Reader) AllOIDs() iter.Seq[objectid.ObjectID] {
return func(yield func(objectid.ObjectID) bool) {
positions := reader.AllPositions()