From a4bbec5a9b01c48dcbfd13519e6bae7fcffec449 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 28 Mar 2026 13:07:55 +0000 Subject: repository: Unify docs --- repository/repository.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'repository/repository.go') 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 -- cgit v1.3.1-10-gc9f91