fetch: send server options when using protocol v2
authorBrandon Williams <bmwill@google.com>
Mon, 23 Apr 2018 22:46:24 +0000 (15:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Apr 2018 02:24:40 +0000 (11:24 +0900)
commit5e3548ef161d4d284e35cf5f5d6a181ba4fe707b
treea1e5175546417ed701dbe109b683142b95111261
parentff473221b4d6cf0894ba47370492d853a36c024d
fetch: send server options when using protocol v2

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 <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/fetch-options.txt
builtin/fetch.c
fetch-pack.c
fetch-pack.h
t/t5702-protocol-v2.sh
transport.c