Commit dc9e960f by Carlos Martín Nieto

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>
parent 617bfdf4
...@@ -10,9 +10,12 @@ ...@@ -10,9 +10,12 @@
#include "git2/refspec.h" #include "git2/refspec.h"
struct git_refspec { struct git_refspec {
int force; struct git_refspec *next;
char *src; char *src;
char *dst; char *dst;
unsigned int force :1,
pattern :1,
matching :1;
}; };
int git_refspec_parse(struct git_refspec *refspec, const char *str); int git_refspec_parse(struct git_refspec *refspec, const char *str);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment