aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/read
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 13:27:55 +0000
committerGravatar Runxi Yu2026-03-29 13:27:55 +0000
commitabce6092bf50a1878934e2b442c6781e6aff3fca (patch)
tree3cde8b3b560c7fe4242ba1966588e497fb472142 /format/commitgraph/read
parentformat/commitgraph: Remove MT-ReadSafe; use MT-Safe/Unsafe (diff)
signatureNo signature
format/commitgraph: Trim redundant MT-Safe's
Diffstat (limited to 'format/commitgraph/read')
-rw-r--r--format/commitgraph/read/bloom.go6
-rw-r--r--format/commitgraph/read/commitat.go2
-rw-r--r--format/commitgraph/read/commits.go2
-rw-r--r--format/commitgraph/read/hash.go2
-rw-r--r--format/commitgraph/read/iterators.go4
-rw-r--r--format/commitgraph/read/layerinfo.go2
-rw-r--r--format/commitgraph/read/lookup.go2
-rw-r--r--format/commitgraph/read/oidat.go2
8 files changed, 6 insertions, 16 deletions
diff --git a/format/commitgraph/read/bloom.go b/format/commitgraph/read/bloom.go
index bf9dcbc6..53d724f9 100644
--- a/format/commitgraph/read/bloom.go
+++ b/format/commitgraph/read/bloom.go
@@ -8,8 +8,6 @@ import (
)
// HasBloom reports whether any layer has changed-path Bloom data.
-//
-// Labels: MT-Safe.
func (reader *Reader) HasBloom() bool {
for i := range reader.layers {
layer := &reader.layers[i]
@@ -22,8 +20,6 @@ func (reader *Reader) HasBloom() bool {
}
// BloomVersion returns the changed-path Bloom hash version, or 0 if absent.
-//
-// Labels: MT-Safe.
func (reader *Reader) BloomVersion() uint8 {
for i := len(reader.layers) - 1; i >= 0; i-- {
layer := &reader.layers[i]
@@ -47,7 +43,7 @@ func (reader *Reader) BloomVersion() uint8 {
//
// Returns BloomUnavailableError when this commit graph has no Bloom data.
//
-// Labels: MT-Safe, Life-Parent.
+// Labels: Life-Parent.
func (reader *Reader) BloomFilterAt(pos Position) (bloom.Filter, error) {
layer, err := reader.layerByPosition(pos)
if err != nil {
diff --git a/format/commitgraph/read/commitat.go b/format/commitgraph/read/commitat.go
index 726a09bd..827c72ce 100644
--- a/format/commitgraph/read/commitat.go
+++ b/format/commitgraph/read/commitat.go
@@ -9,7 +9,7 @@ import (
// CommitAt returns decoded commit-graph metadata at one position.
//
-// Labels: MT-Safe, Life-Independent.
+// Labels: Life-Independent.
func (reader *Reader) CommitAt(pos Position) (Commit, error) {
layer, err := reader.layerByPosition(pos)
if err != nil {
diff --git a/format/commitgraph/read/commits.go b/format/commitgraph/read/commits.go
index e0a299e7..48984ecb 100644
--- a/format/commitgraph/read/commits.go
+++ b/format/commitgraph/read/commits.go
@@ -15,8 +15,6 @@ type Commit struct {
}
// NumCommits returns total commits across loaded layers.
-//
-// Labels: MT-Safe.
func (reader *Reader) NumCommits() uint32 {
return reader.total
}
diff --git a/format/commitgraph/read/hash.go b/format/commitgraph/read/hash.go
index 4c0e3d2d..3a525afe 100644
--- a/format/commitgraph/read/hash.go
+++ b/format/commitgraph/read/hash.go
@@ -9,8 +9,6 @@ import (
)
// HashVersion returns the commit-graph hash version.
-//
-// Labels: MT-Safe.
func (reader *Reader) HashVersion() uint8 {
return reader.hashVersion
}
diff --git a/format/commitgraph/read/iterators.go b/format/commitgraph/read/iterators.go
index f8731526..0e31f7e5 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: MT-Safe, Life-Parent.
+// Labels: 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: MT-Safe, Life-Parent.
+// Labels: Life-Parent.
func (reader *Reader) AllOIDs() iter.Seq[objectid.ObjectID] {
return func(yield func(objectid.ObjectID) bool) {
positions := reader.AllPositions()
diff --git a/format/commitgraph/read/layerinfo.go b/format/commitgraph/read/layerinfo.go
index f437a1c2..d4dbfad3 100644
--- a/format/commitgraph/read/layerinfo.go
+++ b/format/commitgraph/read/layerinfo.go
@@ -9,7 +9,7 @@ type LayerInfo struct {
// Layers returns loaded layer metadata in native chain order.
//
-// Labels: MT-Safe, Life-Independent.
+// Labels: Life-Independent.
func (reader *Reader) Layers() []LayerInfo {
out := make([]LayerInfo, 0, len(reader.layers))
for i := range reader.layers {
diff --git a/format/commitgraph/read/lookup.go b/format/commitgraph/read/lookup.go
index 91a505e1..5f1b08f6 100644
--- a/format/commitgraph/read/lookup.go
+++ b/format/commitgraph/read/lookup.go
@@ -6,8 +6,6 @@ import (
)
// Lookup resolves one object ID to one graph position.
-//
-// Labels: MT-Safe.
func (reader *Reader) Lookup(oid objectid.ObjectID) (Position, error) {
if oid.Algorithm() != reader.algo {
return Position{}, &NotFoundError{OID: oid}
diff --git a/format/commitgraph/read/oidat.go b/format/commitgraph/read/oidat.go
index 631002d9..99259995 100644
--- a/format/commitgraph/read/oidat.go
+++ b/format/commitgraph/read/oidat.go
@@ -7,7 +7,7 @@ import (
// OIDAt returns object ID at one position.
//
-// Labels: MT-Safe, Life-Independent.
+// Labels: Life-Independent.
func (reader *Reader) OIDAt(pos Position) (objectid.ObjectID, error) {
layer, err := reader.layerByPosition(pos)
if err != nil {