From 3538f77254a2d1bfbb2121d16c9f19dd7498bb6f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 16 Nov 2025 00:00:00 +0000 Subject: repo is thread safe --- repo.go | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1-10-gc9f91