summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-05-16 22:58:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 21:19:42 (GMT)
commit6bdb304b106db32b1cff185f2fa1b79e9c2c919c (patch)
treeeae9ab1c184a94f3c033907dbb5f2a74d88cf652 /remote.h
parent16eefc8eb37dfb26c83bbd0a393b494e3734cb97 (diff)
downloadgit-6bdb304b106db32b1cff185f2fa1b79e9c2c919c.zip
git-6bdb304b106db32b1cff185f2fa1b79e9c2c919c.tar.gz
git-6bdb304b106db32b1cff185f2fa1b79e9c2c919c.tar.bz2
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>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/remote.h b/remote.h
index 3657bd4..637fc5d 100644
--- a/remote.h
+++ b/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;