Move refspec parser from connect.c and cache.h to remote.{c,h}
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
5751f49010
commit
6b62816cb1
12
remote.h
12
remote.h
@ -8,6 +8,7 @@ struct remote {
|
||||
int uri_nr;
|
||||
|
||||
const char **push_refspec;
|
||||
struct refspec *push;
|
||||
int push_refspec_nr;
|
||||
|
||||
const char *receivepack;
|
||||
@ -15,4 +16,15 @@ struct remote {
|
||||
|
||||
struct remote *remote_get(const char *name);
|
||||
|
||||
struct refspec {
|
||||
unsigned force : 1;
|
||||
unsigned pattern : 1;
|
||||
|
||||
const char *src;
|
||||
char *dst;
|
||||
};
|
||||
|
||||
int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
|
||||
int nr_refspec, char **refspec, int all);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user