remote: convert fetch refspecs to struct refspec

Convert the set of fetch refspecs stored in 'struct remote' to use
'struct refspec'.

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:01 -07:00
committed by Junio C Hamano
parent 6bdb304b10
commit e5349abf93
4 changed files with 32 additions and 49 deletions

View File

@ -30,10 +30,7 @@ struct remote {
struct refspec push;
const char **fetch_refspec;
struct refspec_item *fetch;
int fetch_refspec_nr;
int fetch_refspec_alloc;
struct refspec fetch;
/*
* -1 to never fetch tags