aboutsummaryrefslogtreecommitdiff
path: root/objectstore/packed/store.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-22 18:00:22 +0000
committerGravatar Runxi Yu2026-03-22 18:02:10 +0000
commit4e43d7207bf91ee759c770de1bcc8562a71b4aca (patch)
tree2abf7592a88d733b2815fc214ba59c3b209d3fa7 /objectstore/packed/store.go
parentobjectstore{,/packed}: Document lifetime and integrity behavior (diff)
signatureNo signature
objectstore/*, repository, receivepack/service: don't take ownership of root
Diffstat (limited to 'objectstore/packed/store.go')
-rw-r--r--objectstore/packed/store.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/objectstore/packed/store.go b/objectstore/packed/store.go
index 58534709..61ccdb9a 100644
--- a/objectstore/packed/store.go
+++ b/objectstore/packed/store.go
@@ -11,10 +11,8 @@ import (
)
// Store reads Git objects from pack/index files under an objects/pack root.
-//
-// Store owns root and closes it in Close.
type Store struct {
- // root is the objects/pack capability used for all file access.
+ // root is the borrowed objects/pack capability used for all file access.
root *os.Root
// algo is the expected object ID algorithm for lookups.
algo objectid.Algorithm