]> git.proxmox.com Git - libgit2.git/blame - src/remote.h
Merge pull request #1208 from ethomson/ppc_sha1_asm_deadness
[libgit2.git] / src / remote.h
CommitLineData
bb742ede 1/*
5e0de328 2 * Copyright (C) 2009-2012 the libgit2 contributors
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"
b4c90630 14#include "repository.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;
9c82357b
CMN
23 struct git_refspec fetch;
24 struct git_refspec push;
091361f5 25 git_cred_acquire_cb cred_acquire_cb;
59bccf33 26 void *cred_acquire_payload;
9ba49bb5 27 git_transport *transport;
44daec42 28 git_repository *repo;
b3aaa7a7 29 git_remote_callbacks callbacks;
7d222e13 30 git_transfer_progress stats;
f4a62c30
BS
31 unsigned int need_pack;
32 git_remote_autotag_option_t download_tags;
33 unsigned int check_cert;
34 unsigned int update_fetchhead;
9c82357b
CMN
35};
36
eff5b499 37const char* git_remote__urlfordirection(struct git_remote *remote, int direction);
613d5eb9 38int git_remote__get_http_proxy(git_remote *remote, bool use_ssl, char **proxy_url);
eff5b499 39
9c82357b 40#endif