Sha256: ee98c1aa0596b1cb409795a94de4891392e1675c42e8877a1e38bd0a5c3fd2d0

Contents?: true

Size: 1.17 KB

Versions: 88

Compression:

Stored size: 1.17 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_sys_git_refdb_h__
#define INCLUDE_sys_git_refdb_h__

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

/**
 * @file git2/sys/refs.h
 * @brief Low-level Git ref creation
 * @defgroup git_backend Git custom backend APIs
 * @ingroup Git
 * @{
 */
GIT_BEGIN_DECL

/**
 * Create a new direct reference from an OID.
 *
 * @param name the reference name
 * @param oid the object id for a direct reference
 * @param peel the first non-tag object's OID, or NULL
 * @return the created git_reference or NULL on error
 */
GIT_EXTERN(git_reference *) git_reference__alloc(
	const char *name,
	const git_oid *oid,
	const git_oid *peel);

/**
 * Create a new symbolic reference.
 *
 * @param name the reference name
 * @param target the target for a symbolic reference
 * @return the created git_reference or NULL on error
 */
GIT_EXTERN(git_reference *) git_reference__alloc_symbolic(
	const char *name,
	const char *target);

/** @} */
GIT_END_DECL
#endif

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
rugged-0.27.0 vendor/libgit2/include/git2/sys/refs.h
rugged-0.26.3 vendor/libgit2/include/git2/sys/refs.h
rugged-0.26.0 vendor/libgit2/include/git2/sys/refs.h
rugged-0.26.0b5 vendor/libgit2/include/git2/sys/refs.h
rugged-0.26.0b4 vendor/libgit2/include/git2/sys/refs.h
rugged-0.26.0b3 vendor/libgit2/include/git2/sys/refs.h
rugged-0.26.0b2 vendor/libgit2/include/git2/sys/refs.h
rugged-0.26.0b1 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.1.1 vendor/libgit2/include/git2/sys/refs.h
rugged-0.24.6.1 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.1 vendor/libgit2/include/git2/sys/refs.h
rugged-0.24.5 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.0 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.0b10 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.0b9 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.0b8 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.0b7 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.0b6 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.0b5 vendor/libgit2/include/git2/sys/refs.h
rugged-0.25.0b4 vendor/libgit2/include/git2/sys/refs.h