diff options
| author | 2026-03-22 23:51:01 +0000 | |
|---|---|---|
| committer | 2026-03-22 23:51:01 +0000 | |
| commit | 13507b7704415332e2b00f5f4d291f3be8bd18fa (patch) | |
| tree | 5c193e1ce520044af0d7db44d4b8febdbcd03582 /receivepack/options.go | |
| parent | objectstore/packed: Document refresh semantics (diff) | |
| signature | No signature | |
receivepack: Lifecycle/ownership docs v0.1.91
Diffstat (limited to 'receivepack/options.go')
| -rw-r--r-- | receivepack/options.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/receivepack/options.go b/receivepack/options.go index 7328f770..860f29c1 100644 --- a/receivepack/options.go +++ b/receivepack/options.go @@ -9,6 +9,12 @@ import ( ) // Options configures one receive-pack invocation. +// +// ReceivePack borrows all configured dependencies. +// +// Refs and ExistingObjects are required and must be non-nil. +// ObjectsRoot is required if the invocation may need to ingest or promote a +// pack. type Options struct { // GitProtocol is the raw Git protocol version string from the transport, // such as "version=1". @@ -27,7 +33,8 @@ type Options struct { // directories moved from quarantine into the permanent object store. PromotedObjectPermissions *PromotedObjectPermissions // Hook, when non-nil, runs after pack ingestion into quarantine and before - // quarantine promotion or ref updates. + // quarantine promotion or ref updates. Hook is borrowed for the duration of + // ReceivePack. Hook Hook // Agent is the receive-pack agent string advertised via capability. // |
