aboutsummaryrefslogtreecommitdiff
path: root/repository/repository.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-28 13:07:55 +0000
committerGravatar Runxi Yu2026-03-28 13:07:55 +0000
commita4bbec5a9b01c48dcbfd13519e6bae7fcffec449 (patch)
tree612df31c4fd32c4c3271f2c1360f5593926e4f70 /repository/repository.go
parentrepository, README: Fix fetcher/resolver naming (diff)
signatureNo signature
repository: Unify docs
Diffstat (limited to 'repository/repository.go')
-rw-r--r--repository/repository.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/repository/repository.go b/repository/repository.go
index 6b970c20..8c0322b7 100644
--- a/repository/repository.go
+++ b/repository/repository.go
@@ -1,4 +1,4 @@
-// Package repository wires object and ref storage for one Git repository.
+// Package repository opens stores and other objects to access a typical on-disk repo.
package repository
import (
@@ -20,7 +20,8 @@ import (
//
// Accessors such as Objects, Refs, Resolver, and LooseStoreForWriting return
// views backed by resources owned by Repository. Those values borrow the
-// repository's stores and filesystem roots and must not be used after Close.
+// repository's stores and filesystem roots, must not be used after repositor yClose,
+// and must not be closed manually.
type Repository struct {
config *config.Config
algo objectid.Algorithm