repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move refspec parser from connect.c and cache.h to remote.{c,h}
[alt-git.git]
/
remote.h
blob
3bc035b90be4dc79c9ad4fc4567d6118e860db92
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