aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/read/commits.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/commits.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/commits.go')
-rw-r--r--format/commitgraph/read/commits.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/format/commitgraph/read/commits.go b/format/commitgraph/read/commits.go
index 48984ecb..e0a299e7 100644
--- a/format/commitgraph/read/commits.go
+++ b/format/commitgraph/read/commits.go
@@ -15,6 +15,8 @@ type Commit struct {
}
// NumCommits returns total commits across loaded layers.
+//
+// Labels: MT-Safe.
func (reader *Reader) NumCommits() uint32 {
return reader.total
}