summaryrefslogtreecommitdiff
path: root/src/refspec.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-04-20 04:43:28 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-04-20 17:54:13 +0200
commit4330ab26b53c0e1bf8cbb5e65704f65e3d116eba (patch)
tree14bf8d854854298bfe43b3a02c8c26f59377c988 /src/refspec.h
parente5a27f039ee3ae1291fd5084707c3f9c168f10ba (diff)
downloadlibgit2-4330ab26b53c0e1bf8cbb5e65704f65e3d116eba.tar.gz
remote: handle multiple refspecs
A remote can have a multitude of refspecs. Up to now our git_remote's have supported a single one for each fetch and push out of simplicity to get something working. Let the remotes and internal code know about multiple remotes and get the tests passing with them. Instead of setting a refspec, the external users can clear all and add refspecs. This should be enough for most uses, though we're still missing a querying function.
Diffstat (limited to 'src/refspec.h')
-rw-r--r--src/refspec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refspec.h b/src/refspec.h
index a7a4dd834..339d10eb2 100644
--- a/src/refspec.h
+++ b/src/refspec.h
@@ -11,10 +11,10 @@
#include "buffer.h"
struct git_refspec {
- struct git_refspec *next;
char *src;
char *dst;
unsigned int force :1,
+ push : 1,
pattern :1,
matching :1;
};