From: Brandon Williams Date: Mon, 23 Apr 2018 22:46:23 +0000 (-0700) Subject: ls-remote: send server options when using protocol v2 X-Git-Tag: v2.18.0-rc0~60^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ff473221b4d6cf0894ba47370492d853a36c024d ls-remote: send server options when using protocol v2 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-ls-remote.txt b/Documentation/git-ls-remote.txt index 5f2628c8f8..e5defb1b2d 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