]>
git.proxmox.com Git - libgit2.git/blob - include/git2/net.h
2 * Copyright (C) 2009-2012 the libgit2 contributors
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_net_h__
8 #define INCLUDE_net_h__
16 * @brief Git networking declarations
22 #define GIT_DEFAULT_PORT "9418"
25 * We need this because we need to know whether we should call
26 * git-upload-pack or git-receive-pack on the remote end when get_refs
30 #define GIT_DIR_FETCH 0
31 #define GIT_DIR_PUSH 1
35 * Remote head description, given out on `ls` calls.
37 struct git_remote_head
{
38 int local
:1; /* available locally */
45 * Callback for listing the remote heads
47 typedef int (*git_headlist_cb
)(git_remote_head
*, void *);