From: Brandon Williams Date: Mon, 23 Apr 2018 22:46:24 GMT Subject: [PATCH 3/3] fetch: send server options when using protocol v2 Message-ID: <20180423224624.213341-4-bmwill@google.com> In-Reply-To: <20180423224624.213341-1-bmwill@google.com> Teach fetch to optionally accept server options by specifying them on the cmdline via '-o' or '--server-option'. These server options are sent to the remote end when performing a fetch communicating using protocol version 2. If communicating using a protocol other than v2 the provided options are ignored and not sent to the remote end. Signed-off-by: Brandon Williams --- Documentation/fetch-options.txt | 8 ++++++++ builtin/fetch.c | 5 +++++ fetch-pack.c | 7 +++++++ fetch-pack.h | 1 + t/t5702-protocol-v2.sh | 16 ++++++++++++++++ transport.c | 1 + 6 files changed, 38 insertions(+) diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt index 8631e365f..97d3217df 100644 --- a/Documentation/fetch-options.txt +++ b/Documentation/fetch-options.txt @@ -188,6 +188,14 @@ endif::git-pull[] is specified. This flag forces progress status even if the standard error stream is not directed to a terminal. +-o