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:
committed by
Junio C Hamano
parent
16eefc8eb3
commit
6bdb304b10
6
remote.h
6
remote.h
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user