Sha256: 2b0e215eeeb942072e8a7d603ba11d23cd58df489442b9a2e7d9552512d148c9

Contents?: true

Size: 1.19 KB

Versions: 57

Compression:

Stored size: 1.19 KB

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * 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_git_net_h__
#define INCLUDE_git_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"

/**
 * Direction of the connection.
 *
 * 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.
 */
typedef enum {
	GIT_DIRECTION_FETCH = 0,
	GIT_DIRECTION_PUSH  = 1
} git_direction;

/**
 * Description of a reference advertised by a remote server, given out
 * on `ls` calls.
 */
struct git_remote_head {
	int local; /* available locally */
	git_oid oid;
	git_oid loid;
	char *name;
	/**
	 * If the server send a symref mapping for this ref, this will
	 * point to the target.
	 */
	char *symref_target;
};

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

/** @} */
GIT_END_DECL
#endif

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
rugged-0.27.10.1 vendor/libgit2/include/git2/net.h
rugged-0.27.9 vendor/libgit2/include/git2/net.h
rugged-0.27.7 vendor/libgit2/include/git2/net.h
rugged-0.27.5 vendor/libgit2/include/git2/net.h
rugged-0.26.7 vendor/libgit2/include/git2/net.h
rugged-0.26.6 vendor/libgit2/include/git2/net.h
rugged-0.27.4 vendor/libgit2/include/git2/net.h
rugged-0.27.2 vendor/libgit2/include/git2/net.h
rugged-0.27.1 vendor/libgit2/include/git2/net.h
rugged-0.27.0 vendor/libgit2/include/git2/net.h
rugged-0.26.3 vendor/libgit2/include/git2/net.h
rugged-0.26.0 vendor/libgit2/include/git2/net.h
rugged-0.26.0b5 vendor/libgit2/include/git2/net.h
rugged-0.26.0b4 vendor/libgit2/include/git2/net.h
rugged-0.26.0b3 vendor/libgit2/include/git2/net.h
rugged-0.26.0b2 vendor/libgit2/include/git2/net.h
rugged-0.26.0b1 vendor/libgit2/include/git2/net.h
rugged-0.25.1.1 vendor/libgit2/include/git2/net.h
rugged-0.24.6.1 vendor/libgit2/include/git2/net.h
rugged-0.25.1 vendor/libgit2/include/git2/net.h