Sha256: c2a294675609de1ec79de93196040043e5a939e0456e8f7de7b57578d5b868b3

Contents?: true

Size: 962 Bytes

Versions: 4

Compression:

Stored size: 962 Bytes

Contents

/*
 * Copyright (C) 2009-2012 the libgit2 contributors
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
#ifndef INCLUDE_net_h__
#define INCLUDE_net_h__

#include "common.h"
#include "oid.h"
#include "types.h"

/**
 * @file git2/net.h
 * @brief Git networking declarations
 * @ingroup Git
 * @{
 */
GIT_BEGIN_DECL

#define GIT_DEFAULT_PORT "9418"

/*
 * We need this because we need to know whether we should call
 * git-upload-pack or git-receive-pack on the remote end when get_refs
 * gets called.
 */

#define GIT_DIR_FETCH 0
#define GIT_DIR_PUSH 1


/**
 * Remote head description, given out on `ls` calls.
 */
struct git_remote_head {
	int local:1; /* available locally */
	git_oid oid;
	git_oid loid;
	char *name;
};

/**
 * Callback for listing the remote heads
 */
typedef int (*git_headlist_cb)(git_remote_head *, void *);

/** @} */
GIT_END_DECL
#endif

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rugged-0.17.0.b7 vendor/libgit2/include/git2/net.h
rugged-0.17.0.b6 vendor/libgit2/include/git2/net.h
rugged-0.17.0b2 ext/rugged/vendor/libgit2-dist/include/git2/net.h
rugged-0.17.0b1 ext/rugged/vendor/libgit2-dist/include/git2/net.h