refspec: make the structure more complete Add a next pointer to make it a linked list and add the 'pattern' and 'matching' flags. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
diff --git a/src/refspec.h b/src/refspec.h
index 58f3fe4..7c38971 100644
--- a/src/refspec.h
+++ b/src/refspec.h
@@ -10,9 +10,12 @@
#include "git2/refspec.h"
struct git_refspec {
- int force;
+ struct git_refspec *next;
char *src;
char *dst;
+ unsigned int force :1,
+ pattern :1,
+ matching :1;
};
int git_refspec_parse(struct git_refspec *refspec, const char *str);