aboutsummaryrefslogtreecommitdiff
path: root/refstore/transaction.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-22 23:24:18 +0000
committerGravatar Runxi Yu2026-03-22 23:24:18 +0000
commitafd58b4e5882402d606728e4f2ee8e5cb2354939 (patch)
tree3e0fd2e495ac10fa2c2cd1ccaf54574d95550798 /refstore/transaction.go
parentrefstore/files: UB on use after close (diff)
signatureNo signature
refstore: Update invariants v0.1.89
Diffstat (limited to 'refstore/transaction.go')
-rw-r--r--refstore/transaction.go3
1 files changed, 3 insertions, 0 deletions
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.