2 * Copyright (C) the libgit2 contributors. All rights reserved.
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.
7 #ifndef INCLUDE_remote_h__
8 #define INCLUDE_remote_h__
10 #include "git2/remote.h"
11 #include "git2/transport.h"
12 #include "git2/sys/transport.h"
17 #define GIT_REMOTE_ORIGIN "origin"
25 git_vector active_refspecs
;
26 git_vector passive_refspecs
;
27 git_transport_cb transport_cb
;
28 void *transport_cb_payload
;
29 git_transport
*transport
;
31 git_remote_callbacks callbacks
;
32 git_transfer_progress stats
;
33 unsigned int need_pack
;
34 git_remote_autotag_option_t download_tags
;
39 const char* git_remote__urlfordirection(struct git_remote
*remote
, int direction
);
40 int git_remote__get_http_proxy(git_remote
*remote
, bool use_ssl
, char **proxy_url
);
42 git_refspec
*git_remote__matching_refspec(git_remote
*remote
, const char *refname
);
43 git_refspec
*git_remote__matching_dst_refspec(git_remote
*remote
, const char *refname
);