remote: convert apply_refspecs to take a struct refspec

Convert 'apply_refspecs()' to take a 'struct refspec' as a parameter instead
of a list of 'struct refspec_item'.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Brandon Williams
2018-05-16 15:58:11 -07:00
committed by Junio C Hamano
parent a2ac50cbfd
commit d000414e26
4 changed files with 11 additions and 15 deletions

View File

@ -831,7 +831,7 @@ static void get_tags_and_duplicates(struct rev_cmdline_info *info)
if (refspecs.nr) {
char *private;
private = apply_refspecs(refspecs.items, refspecs.nr, full_name);
private = apply_refspecs(&refspecs, full_name);
if (private) {
free(full_name);
full_name = private;