]> git.ipfire.org Git - thirdparty/git.git/commit - transport-internal.h
transport: convert get_refs_list to take a list of ref prefixes
authorBrandon Williams <bmwill@google.com>
Thu, 15 Mar 2018 17:31:22 +0000 (10:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Mar 2018 19:01:08 +0000 (12:01 -0700)
commit834cf34b26035abc58f7c2b0f2afd5527e93c30d
tree3138adb283ecc11f6b8e104a53e564866b652a54
parente52449b672210f4b49e116ca34dcd46657287f61
transport: convert get_refs_list to take a list of ref prefixes

Convert the 'struct transport' virtual function 'get_refs_list()' to
optionally take an argv_array of ref prefixes.  When communicating with
a server using protocol v2 these ref prefixes can be sent when
requesting a listing of their refs allowing the server to filter the
refs it sends based on the sent prefixes.  This list will be ignored
when not using protocol v2.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c
transport-internal.h
transport.c