aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit3538f77254a2d1bfbb2121d16c9f19dd7498bb6f (patch)
treedd329081d6014b8c0a7f13e91e807b381d9cafe7
parentDocumentation overhaul (diff)
signature
repo is thread safe
-rw-r--r--repo.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/repo.go b/repo.go
index a33221fa..05473252 100644
--- a/repo.go
+++ b/repo.go
@@ -13,6 +13,9 @@ import (
)
// Repository represents a Git repository.
+//
+// It is safe to access the same Repository from multiple goroutines
+// without additional synchronization.
type Repository struct {
rootPath string
hashSize int