diff options
| author | 2026-03-24 06:10:36 +0000 | |
|---|---|---|
| committer | 2026-03-24 06:10:36 +0000 | |
| commit | a454068d748a363833df3a2219ac278bcaf4c39b (patch) | |
| tree | 43a8c0046d02b81688b068b1eda43913e6a81d20 /repository/repository.go | |
| parent | TODO: Remove that broken line (diff) | |
| signature | No signature | |
repository: Clarify ownership
Diffstat (limited to 'repository/repository.go')
| -rw-r--r-- | repository/repository.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/repository/repository.go b/repository/repository.go index c56827cd..376c9bd7 100644 --- a/repository/repository.go +++ b/repository/repository.go @@ -16,6 +16,10 @@ import ( // // Open expects a root for the Git directory itself: // a bare repository root or a non-bare ".git" directory. +// +// 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. type Repository struct { config *config.Config algo objectid.Algorithm |
