From 7ddaf1eb2fde11a9e07df0215646c1dca08ccc50 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 22 Mar 2026 22:07:39 +0000 Subject: refstore, repository: Ownership/lifetimes fix --- refstore/files/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'refstore/files/store.go') diff --git a/refstore/files/store.go b/refstore/files/store.go index 6091c000..378c0af0 100644 --- a/refstore/files/store.go +++ b/refstore/files/store.go @@ -14,7 +14,8 @@ import ( // Store reads and writes one Git files ref namespace rooted at one repository // gitdir plus its commondir. // -// Store owns both roots and closes them in Close. +// Store borrows gitRoot and owns commonRoot. Close releases only resources +// opened by the store itself. type Store struct { gitRoot *os.Root commonRoot *os.Root -- cgit v1.3.1-10-gc9f91