aboutsummaryrefslogtreecommitdiff
path: root/network/receivepack/hook.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 19:53:06 +0000
committerGravatar Runxi Yu2026-03-30 19:57:38 +0000
commit82f8ae0392250f0de127fcd7a5da21587e9e589c (patch)
treedb4a5c37ed310273a0491755833b0c206312d53e /network/receivepack/hook.go
parentnetwork/receivepack: Use dual (diff)
signatureNo signature
network/receivepack: Cleanup; also document QuarantinedObjects nullness
Diffstat (limited to 'network/receivepack/hook.go')
-rw-r--r--network/receivepack/hook.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/network/receivepack/hook.go b/network/receivepack/hook.go
index cd03dfd0..9626b2a3 100644
--- a/network/receivepack/hook.go
+++ b/network/receivepack/hook.go
@@ -34,8 +34,11 @@ type UpdateDecision struct {
//
// Labels: Life-Call.
type HookRequest struct {
- Refs refstore.ReadingStore
- ExistingObjects objectstore.Reader
+ Refs refstore.ReadingStore
+ ExistingObjects objectstore.Reader
+ // QuarantinedObjects exposes quarantined objects for this push.
+ //
+ // When the push did not create a quarantine, QuarantinedObjects is nil.
QuarantinedObjects objectstore.Reader
CommitGraph *commitgraphread.Reader
Updates []RefUpdate