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>
maint
Brandon Williams7 years agocommitted byJunio C Hamano
@ -189,7 +191,8 @@ static int connect_setup(struct transport *transport, int for_push)
@@ -189,7 +191,8 @@ static int connect_setup(struct transport *transport, int for_push)
return 0;
}
static struct ref *get_refs_via_connect(struct transport *transport, int for_push)
static struct ref *get_refs_via_connect(struct transport *transport, int for_push,
@ -250,7 +254,7 @@ static int fetch_refs_via_pack(struct transport *transport,
@@ -250,7 +254,7 @@ static int fetch_refs_via_pack(struct transport *transport,