git_reference__alloc

Create a new direct reference from an OID.

package extern (C) nothrow @nogc
git_reference__alloc

Parameters

name const(char)*

the reference name

oid const(libgit2_d.oid.git_oid)*

the object id for a direct reference

peel const(libgit2_d.oid.git_oid)*

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

Return Value

Type: libgit2_d.types.git_reference*

the created git_reference or null on error

Meta