aboutsummaryrefslogtreecommitdiff
path: root/refstore/transaction.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-22 22:07:39 +0000
committerGravatar Runxi Yu2026-03-22 22:07:39 +0000
commit7ddaf1eb2fde11a9e07df0215646c1dca08ccc50 (patch)
treeec1096bd8229fa0a3c3272e2a52e60bff0d73797 /refstore/transaction.go
parentobjectstore/loose, receivepack/service, repository: Lint whitespace (diff)
signatureNo signature
refstore, repository: Ownership/lifetimes fix v0.1.87
Diffstat (limited to 'refstore/transaction.go')
-rw-r--r--refstore/transaction.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/refstore/transaction.go b/refstore/transaction.go
index 539229c9..fc0a8d76 100644
--- a/refstore/transaction.go
+++ b/refstore/transaction.go
@@ -37,7 +37,11 @@ type Transaction interface {
VerifySymbolic(name, oldTarget string) error
// Commit validates and applies all queued operations atomically.
+ //
+ // Commit is terminal. Further use of the transaction is undefined behavior.
Commit() error
// Abort abandons the transaction and releases any resources it holds.
+ //
+ // Abort is terminal. Further use of the transaction is undefined behavior.
Abort() error
}