]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
ls-remote: pass ref prefixes when requesting a remote's refs
authorBrandon Williams <bmwill@google.com>
Thu, 15 Mar 2018 17:31:24 +0000 (10:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Mar 2018 19:01:08 +0000 (12:01 -0700)
commitb4be74105febef5c6235e1e2f1e468e76166cad8
treeeb61d2519d6f2ef3e3014dc1fd0d754a6b0a2934
parent1af8ae1cfa44a3f3c3f1efb7f9ebe68bc0ce7578
ls-remote: pass ref prefixes when requesting a remote's refs

Construct an argv_array of ref prefixes based on the patterns supplied
via the command line and pass them to 'transport_get_remote_refs()' to
be used when communicating protocol v2 so that the server can limit the
ref advertisement based on those prefixes.

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