]> git.proxmox.com Git - libgit2.git/blame - src/remote.h
remote: create FETCH_HEAD with a refspecless remote
[libgit2.git] / src / remote.h
CommitLineData
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"
7e9f78b5 12
9c82357b 13#include "refspec.h"
114f5a6c 14#include "vector.h"
9c82357b 15
096d9e94 16#define GIT_REMOTE_ORIGIN "origin"
17
9c82357b
CMN
18struct git_remote {
19 char *name;
20 char *url;
3ed4b501 21 char *pushurl;
d88d4311 22 git_vector refs;
4330ab26 23 git_vector refspecs;
9ba49bb5 24 git_transport *transport;
44daec42 25 git_repository *repo;
b3aaa7a7 26 git_remote_callbacks callbacks;
7d222e13 27 git_transfer_progress stats;
f4a62c30
BS
28 unsigned int need_pack;
29 git_remote_autotag_option_t download_tags;
30 unsigned int check_cert;
31 unsigned int update_fetchhead;
9c82357b
CMN
32};
33
eff5b499 34const char* git_remote__urlfordirection(struct git_remote *remote, int direction);
613d5eb9 35int git_remote__get_http_proxy(git_remote *remote, bool use_ssl, char **proxy_url);
eff5b499 36
4330ab26
CMN
37git_refspec *git_remote__matching_refspec(git_remote *remote, const char *refname);
38git_refspec *git_remote__matching_dst_refspec(git_remote *remote, const char *refname);
39
9c82357b 40#endif