{fetch,upload}-pack: sideband v2 fetch response
authorJonathan Tan <jonathantanmy@google.com>
Wed, 16 Jan 2019 19:28:14 +0000 (11:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jan 2019 19:25:07 +0000 (11:25 -0800)
commit0bbc0bc5745ab8b294a5faf8c3b1d939ae8b6d10
tree09c885895d97cd7c5d1243035ca281be098123ab
parentfbd76cd450e6675cbd5d48da3c53fa446b776475
{fetch,upload}-pack: sideband v2 fetch response

Currently, a response to a fetch request has sideband support only while
the packfile is being sent, meaning that the server cannot send notices
until the start of the packfile.

Extend sideband support in protocol v2 fetch responses to the whole
response. upload-pack will advertise it if the
uploadpack.allowsidebandall configuration variable is set, and
fetch-pack will automatically request it if advertised.

If the sideband is to be used throughout the whole response, upload-pack
will use it to send errors instead of prefixing a PKT-LINE payload with
"ERR ".

This will be tested in a subsequent patch.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/protocol-v2.txt
fetch-pack.c
pkt-line.c
pkt-line.h
sideband.c
sideband.h
upload-pack.c