git_reference__alloc

Create a new direct reference from an OID.

extern (C) nothrow @nogc
git_reference__alloc
(
const(char)* name
,,)

Parameters

name const(char)*

the reference name

oid const(libgit2.oid.git_oid)*

the object id for a direct reference

peel const(libgit2.oid.git_oid)*

the first non-tag object's OID, or null

Return Value

Type: libgit2.types.git_reference*

the created git_reference or null on error

Meta