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:

committed by
Junio C Hamano

parent
a2ac50cbfd
commit
d000414e26
@ -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;
|
||||
|
Reference in New Issue
Block a user