aboutsummaryrefslogtreecommitdiff
path: root/refstore/batch.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/batch.go
parentobjectstore/loose, receivepack/service, repository: Lint whitespace (diff)
signatureNo signature
refstore, repository: Ownership/lifetimes fix v0.1.87
Diffstat (limited to 'refstore/batch.go')
-rw-r--r--refstore/batch.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/refstore/batch.go b/refstore/batch.go
index 6352159c..b170916b 100644
--- a/refstore/batch.go
+++ b/refstore/batch.go
@@ -34,8 +34,12 @@ type Batch interface {
// Apply validates and applies queued operations, returning one result per
// queued operation in order. Fatal backend failures are returned separately.
+ //
+ // Apply is terminal. Further use of the batch is undefined behavior.
Apply() ([]BatchResult, error)
// Abort abandons the batch and releases any resources it holds.
+ //
+ // Abort is terminal. Further use of the batch is undefined behavior.
Abort() error
}