projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Move refspec parser from connect.c and cache.h to remote.{c,h}
[git]
/
remote.h
1
#ifndef REMOTE_H
2
#define REMOTE_H
3
4
struct remote {
5
const char *name;
6
7
const char **uri;
8
int uri_nr;
9
10
const char **push_refspec;
11
struct refspec *push;
12
int push_refspec_nr;
13
14
const char *receivepack;
15
};
16
17
struct remote *remote_get(const char *name);
18
19
struct refspec {
20
unsigned force : 1;
21
unsigned pattern : 1;
22
23
const char *src;
24
char *dst;
25
};
26
27
int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
28
int nr_refspec, char **refspec, int all);
29
30
#endif