Move refspec parser from connect.c and cache.h to remote.{c,h}
[git/dscho.git] / remote.h
blob3bc035b90be4dc79c9ad4fc4567d6118e860db92
1 #ifndef REMOTE_H
2 #define REMOTE_H
4 struct remote {
5 const char *name;
7 const char **uri;
8 int uri_nr;
10 const char **push_refspec;
11 struct refspec *push;
12 int push_refspec_nr;
14 const char *receivepack;
17 struct remote *remote_get(const char *name);
19 struct refspec {
20 unsigned force : 1;
21 unsigned pattern : 1;
23 const char *src;
24 char *dst;
27 int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
28 int nr_refspec, char **refspec, int all);
30 #endif