]> git.proxmox.com Git - libgit2.git/blob - src/remote.h
Move `url` to last place in parameter list
[libgit2.git] / src / remote.h
1 /*
2 * Copyright (C) 2009-2012 the libgit2 contributors
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 */
7 #ifndef INCLUDE_remote_h__
8 #define INCLUDE_remote_h__
9
10 #include "git2/remote.h"
11 #include "git2/transport.h"
12
13 #include "refspec.h"
14 #include "repository.h"
15
16 #define GIT_REMOTE_ORIGIN "origin"
17
18 struct git_remote {
19 char *name;
20 char *url;
21 char *pushurl;
22 bool inmem;
23 git_vector refs;
24 struct git_refspec fetch;
25 struct git_refspec push;
26 git_cred_acquire_cb cred_acquire_cb;
27 void *cred_acquire_payload;
28 git_transport *transport;
29 git_repository *repo;
30 git_remote_callbacks callbacks;
31 git_transfer_progress stats;
32 unsigned int need_pack;
33 git_remote_autotag_option_t download_tags;
34 unsigned int check_cert;
35 unsigned int update_fetchhead;
36 };
37
38 const char* git_remote__urlfordirection(struct git_remote *remote, int direction);
39 int git_remote__get_http_proxy(git_remote *remote, bool use_ssl, char **proxy_url);
40
41 #endif