]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5702-protocol-v2.sh
clone: send ref-prefixes when using protocol v2
authorBrandon Williams <bmwill@google.com>
Fri, 20 Jul 2018 22:07:54 +0000 (15:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 22:25:19 +0000 (15:25 -0700)
commit402c47d939160acc389bbff083fbce9f5482a275
treec782b9a46c21ab20d975deac0b3e780246870748
parent53f9a3e157dbbc901a02ac2c73346d375e24978c
clone: send ref-prefixes when using protocol v2

Teach clone to send a list of ref-prefixes, when using protocol v2, to
allow the server to filter out irrelevant references from the
ref-advertisement.  This reduces wasted time and bandwidth when cloning
repositories with a larger number of references.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
t/t5702-protocol-v2.sh