diff options
Diffstat (limited to 'network/receivepack/hook.go')
| -rw-r--r-- | network/receivepack/hook.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/network/receivepack/hook.go b/network/receivepack/hook.go index a9f36a9e..96027769 100644 --- a/network/receivepack/hook.go +++ b/network/receivepack/hook.go @@ -32,8 +32,7 @@ type UpdateDecision struct { // HookRequest is the input presented to a receive-pack hook before quarantine // promotion and ref updates. // -// Refs, ExistingObjects, QuarantinedObjects, and CommitGraph are borrowed and -// are only valid for the duration of the hook call. +// Labels: Life-Call. type HookRequest struct { Refs refstore.ReadingStore ExistingObjects objectstore.ReadingStore @@ -48,8 +47,7 @@ type HookRequest struct { // // The hook runs after pack ingestion into quarantine and before quarantine // promotion or ref updates. The returned decisions must have the same length as -// HookRequest.Updates. Hook borrows the data and stores in HookRequest only for -// the duration of the call. +// HookRequest.Updates. type Hook func(context.Context, HookRequest) ([]UpdateDecision, error) func translateHook(hook Hook) service.Hook { |
