]>
Commit | Line | Data |
---|---|---|
bb742ede | 1 | /* |
5e0de328 | 2 | * Copyright (C) 2009-2012 the libgit2 contributors |
bb742ede VM |
3 | * |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with | |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
6 | */ | |
9c82357b CMN |
7 | #ifndef INCLUDE_remote_h__ |
8 | #define INCLUDE_remote_h__ | |
9 | ||
7e9f78b5 MS |
10 | #include "git2/remote.h" |
11 | ||
9c82357b | 12 | #include "refspec.h" |
9ba49bb5 | 13 | #include "transport.h" |
b4c90630 | 14 | #include "repository.h" |
9c82357b CMN |
15 | |
16 | struct git_remote { | |
17 | char *name; | |
18 | char *url; | |
3ed4b501 | 19 | char *pushurl; |
d88d4311 | 20 | git_vector refs; |
9c82357b CMN |
21 | struct git_refspec fetch; |
22 | struct git_refspec push; | |
9ba49bb5 | 23 | git_transport *transport; |
44daec42 | 24 | git_repository *repo; |
b3aaa7a7 | 25 | git_remote_callbacks callbacks; |
250b95b2 | 26 | unsigned int need_pack:1, |
3230a44f | 27 | download_tags:2, /* There are four possible values */ |
24f2f94e | 28 | check_cert:1; |
9c82357b CMN |
29 | }; |
30 | ||
eff5b499 SC |
31 | const char* git_remote__urlfordirection(struct git_remote *remote, int direction); |
32 | ||
9c82357b | 33 | #endif |