diff options
author | Brandon Williams <bmwill@google.com> | 2018-04-24 00:46:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-24 04:24:40 +0200 |
commit | ff473221b4d6cf0894ba47370492d853a36c024d (patch) | |
tree | 50b103baec013524704188718b2c46433ce4ce10 /Documentation/git-ls-remote.txt | |
parent | serve: introduce the server-option capability (diff) | |
download | git-ff473221b4d6cf0894ba47370492d853a36c024d.tar.xz git-ff473221b4d6cf0894ba47370492d853a36c024d.zip |
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 <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-ls-remote.txt')
-rw-r--r-- | Documentation/git-ls-remote.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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 <option>:: +--server-option=<option>:: + Transmit the given string to the server when communicating using + protocol version 2. The given string must not contain a NUL or LF + character. + When multiple `--server-option=<option>` are given, they are all + sent to the other side in the order listed on the command line. + <repository>:: The "remote" repository to query. This parameter can be either a URL or the name of a remote (see the GIT URLS and |