]>
Commit | Line | Data |
---|---|---|
bb742ede | 1 | /* |
359fc2d2 | 2 | * Copyright (C) the libgit2 contributors. All rights reserved. |
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 | 10 | #include "git2/remote.h" |
41fb1ca0 | 11 | #include "git2/transport.h" |
c180c065 | 12 | #include "git2/sys/transport.h" |
7e9f78b5 | 13 | |
9c82357b | 14 | #include "refspec.h" |
114f5a6c | 15 | #include "vector.h" |
9c82357b | 16 | |
096d9e94 | 17 | #define GIT_REMOTE_ORIGIN "origin" |
18 | ||
9c82357b CMN |
19 | struct git_remote { |
20 | char *name; | |
21 | char *url; | |
3ed4b501 | 22 | char *pushurl; |
d88d4311 | 23 | git_vector refs; |
4330ab26 | 24 | git_vector refspecs; |
af613ecd | 25 | git_vector active_refspecs; |
2cdd5c57 | 26 | git_vector passive_refspecs; |
9ba49bb5 | 27 | git_transport *transport; |
44daec42 | 28 | git_repository *repo; |
fe794b2e | 29 | git_push *push; |
7d222e13 | 30 | git_transfer_progress stats; |
f4a62c30 BS |
31 | unsigned int need_pack; |
32 | git_remote_autotag_option_t download_tags; | |
5f473947 | 33 | int prune_refs; |
c5837cad | 34 | int passed_refspecs; |
9c82357b CMN |
35 | }; |
36 | ||
eff5b499 | 37 | const char* git_remote__urlfordirection(struct git_remote *remote, int direction); |
613d5eb9 | 38 | int git_remote__get_http_proxy(git_remote *remote, bool use_ssl, char **proxy_url); |
eff5b499 | 39 | |
4330ab26 CMN |
40 | git_refspec *git_remote__matching_refspec(git_remote *remote, const char *refname); |
41 | git_refspec *git_remote__matching_dst_refspec(git_remote *remote, const char *refname); | |
42 | ||
9c82357b | 43 | #endif |