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)
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>
No differences found