From afd58b4e5882402d606728e4f2ee8e5cb2354939 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 22 Mar 2026 23:24:18 +0000 Subject: refstore: Update invariants --- refstore/transaction.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'refstore/transaction.go') diff --git a/refstore/transaction.go b/refstore/transaction.go index fc0a8d76..5d090696 100644 --- a/refstore/transaction.go +++ b/refstore/transaction.go @@ -4,6 +4,9 @@ import "codeberg.org/lindenii/furgit/objectid" // Transaction stages reference updates for one atomic commit. // +// A transaction borrows its underlying store and is invalid after that store +// is closed. +// // Ordinary methods operate in dereference mode if name resolves to // a symbolic ref, the operation applies to the final referent rather // than to the symbolic ref itself. -- cgit v1.3.1-10-gc9f91