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>
This commit is contained in:
Carlos Martín Nieto 2011-10-09 02:59:01 +02:00
parent 617bfdf47f
commit dc9e960f4b

View File

@ -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);