]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
{fetch,upload}-pack: support filter in protocol v2
authorJonathan Tan <jonathantanmy@google.com>
Thu, 3 May 2018 23:46:56 +0000 (16:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 May 2018 04:17:19 +0000 (13:17 +0900)
commitba95710a3bdcb2a80495b1d93a0e482dd69905e1
tree8336ff3d7af8a17c68a144edf627700643a457a2
parent5459268751941a71b32816902698376b7932cec5
{fetch,upload}-pack: support filter in protocol v2

The fetch-pack/upload-pack protocol v2 was developed independently of
the filter parameter (used in partial fetches), thus it did not include
support for it. Add support for the filter parameter.

Like in the legacy protocol, the server advertises and supports "filter"
only if uploadpack.allowfilter is configured.

Like in the legacy protocol, the client continues with a warning if
"--filter" is specified, but the server does not advertise it.

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
t/t5702-protocol-v2.sh
upload-pack.c