mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-19 14:16:15 +00:00
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:
parent
617bfdf47f
commit
dc9e960f4b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user