diff options
| author | 2026-03-22 22:07:39 +0000 | |
|---|---|---|
| committer | 2026-03-22 22:07:39 +0000 | |
| commit | 7ddaf1eb2fde11a9e07df0215646c1dca08ccc50 (patch) | |
| tree | ec1096bd8229fa0a3c3272e2a52e60bff0d73797 /refstore/transaction.go | |
| parent | objectstore/loose, receivepack/service, repository: Lint whitespace (diff) | |
| signature | No signature | |
refstore, repository: Ownership/lifetimes fix v0.1.87
Diffstat (limited to 'refstore/transaction.go')
| -rw-r--r-- | refstore/transaction.go | 4 |
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 } |
