aboutsummaryrefslogtreecommitdiff
path: root/receivepack/receivepack.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-22 23:51:01 +0000
committerGravatar Runxi Yu2026-03-22 23:51:01 +0000
commit13507b7704415332e2b00f5f4d291f3be8bd18fa (patch)
tree5c193e1ce520044af0d7db44d4b8febdbcd03582 /receivepack/receivepack.go
parentobjectstore/packed: Document refresh semantics (diff)
signatureNo signature
receivepack: Lifecycle/ownership docs v0.1.91
Diffstat (limited to 'receivepack/receivepack.go')
-rw-r--r--receivepack/receivepack.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/receivepack/receivepack.go b/receivepack/receivepack.go
index 8103ad1f..98bb3030 100644
--- a/receivepack/receivepack.go
+++ b/receivepack/receivepack.go
@@ -19,6 +19,9 @@ import (
// feels a bit ugly.
// ReceivePack serves one receive-pack session over r/w.
+//
+// ReceivePack borrows r, w, and all dependencies reachable through opts for
+// the duration of the call. It does not close any of them.
func ReceivePack(
ctx context.Context,
w pktline.WriteFlusher,