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__
12 #include "git2/remote.h"
13 #include "git2/transport.h"
14 #include "git2/sys/remote.h"
15 #include "git2/sys/transport.h"
21 #define GIT_REMOTE_ORIGIN "origin"
29 git_vector active_refspecs
;
30 git_vector passive_refspecs
;
31 git_vector local_heads
;
32 git_transport
*transport
;
35 git_indexer_progress stats
;
36 unsigned int need_pack
;
37 git_remote_autotag_option_t download_tags
;
42 int git_remote__urlfordirection(git_str
*url_out
, struct git_remote
*remote
, int direction
, const git_remote_callbacks
*callbacks
);
43 int git_remote__http_proxy(char **out
, git_remote
*remote
, git_net_url
*url
);
45 git_refspec
*git_remote__matching_refspec(git_remote
*remote
, const char *refname
);
46 git_refspec
*git_remote__matching_dst_refspec(git_remote
*remote
, const char *refname
);
48 int git_remote__default_branch(git_str
*out
, git_remote
*remote
);
50 int git_remote_connect_options_dup(
51 git_remote_connect_options
*dst
,
52 const git_remote_connect_options
*src
);
53 int git_remote_connect_options_normalize(
54 git_remote_connect_options
*dst
,
56 const git_remote_connect_options
*src
);
58 int git_remote_capabilities(unsigned int *out
, git_remote
*remote
);