From: Brandon Williams Date: Mon, 23 Apr 2018 22:46:23 GMT Subject: [PATCH 2/3] ls-remote: send server options when using protocol v2 Message-ID: <20180423224624.213341-3-bmwill@google.com> In-Reply-To: <20180423224624.213341-1-bmwill@google.com> Teach ls-remote 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 querying for the remote end's refs 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/git-ls-remote.txt | 8 ++++++++ builtin/ls-remote.c | 4 ++++ connect.c | 9 ++++++++- remote.h | 4 +++- t/t5702-protocol-v2.sh | 16 ++++++++++++++++ transport.c | 2 +- transport.h | 6 ++++++ 7 files changed, 46 insertions(+), 3 deletions(-) diff --git a/Documentation/git-ls-remote.txt b/Documentation/git-ls-remote.txt index 5f2628c8f..e5defb1b2 100644 --- a/Documentation/git-ls-remote.txt +++ b/Documentation/git-ls-remote.txt @@ -60,6 +60,14 @@ OPTIONS upload-pack only shows the symref HEAD, so it will be the only one shown by ls-remote. +-o