Move refspec parser from connect.c and cache.h to remote.{c,h}
[git/git.git] / remote.h
CommitLineData
5751f490
DB
1#ifndef REMOTE_H
2#define REMOTE_H
3
4struct remote {
5 const char *name;
6
7 const char **uri;
8 int uri_nr;
9
10 const char **push_refspec;
6b62816c 11 struct refspec *push;
5751f490
DB
12 int push_refspec_nr;
13
14 const char *receivepack;
15};
16
17struct remote *remote_get(const char *name);
18
6b62816c
DB
19struct refspec {
20 unsigned force : 1;
21 unsigned pattern : 1;
22
23 const char *src;
24 char *dst;
25};
26
27int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
28 int nr_refspec, char **refspec, int all);
29
5751f490 30#endif