remote: convert push refspecs to struct refspec

Convert the set of push 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:00 -07:00
committed by Junio C Hamano
parent 16eefc8eb3
commit 6bdb304b10
4 changed files with 28 additions and 37 deletions

View File

@ -3,6 +3,7 @@
#include "parse-options.h"
#include "hashmap.h"
#include "refspec.h"
enum {
REMOTE_UNCONFIGURED = 0,
@ -27,10 +28,7 @@ struct remote {
int pushurl_nr;
int pushurl_alloc;
const char **push_refspec;
struct refspec_item *push;
int push_refspec_nr;
int push_refspec_alloc;
struct refspec push;
const char **fetch_refspec;
struct refspec_item *fetch;