From 1df19d6ebe4dccf7de3bcf16cf6037d169832ce3 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Mar 2026 04:08:36 +0800 Subject: receivepack: Trivial caps --- receivepack/options.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'receivepack/options.go') diff --git a/receivepack/options.go b/receivepack/options.go index f55fbad1..7328f770 100644 --- a/receivepack/options.go +++ b/receivepack/options.go @@ -29,6 +29,19 @@ type Options struct { // Hook, when non-nil, runs after pack ingestion into quarantine and before // quarantine promotion or ref updates. Hook Hook + // Agent is the receive-pack agent string advertised via capability. + // + // When empty, ReceivePack derives one from build info and falls back to + // "furgit". + Agent string + // SessionID is the advertised receive-pack session-id capability value. + // + // When empty, ReceivePack generates one random value per invocation. + SessionID string + // PushCertNonce is the advertised push-cert nonce capability value. + // + // When empty, ReceivePack generates one random value per invocation. + PushCertNonce string } func validateOptions(opts Options) error { -- cgit v1.3.1-10-gc9f91