···33// Close releases mapped pack/index resources associated with the store.
44//
55// Store borrows its root, so Close does not close it.
66+// Close releases cached pack/index mappings retained by the store.
67//
78// Repeated calls to Close are undefined behavior.
89func (store *Store) Close() error {
+6-1
objectstore/packed/idx_lookup_candidates.go
···2222 candidateByPack map[string]packCandidate
2323}
24242525-// Refresh rescans objects/pack and atomically installs a fresh candidate list.
2525+// Refresh rescans objects/pack and atomically installs a fresh candidate list
2626+// for future lookups.
2727+//
2828+// Refresh does not invalidate existing readers. Cached pack/index mappings,
2929+// including ones for previously visible candidates, may be retained until
3030+// Close.
2631func (store *Store) Refresh() error {
2732 store.refreshMu.Lock()
2833 defer store.refreshMu.Unlock()
+2
objectstore/packed/store.go
···1111)
12121313// Store reads Git objects from pack/index files under an objects/pack root.
1414+//
1515+// Store borrows its root. Cached pack/index mappings are retained until Close.
1416type Store struct {
1517 // root is the borrowed objects/pack capability used for all file access.
1618 root *os.Root