git_reference_target

Get the OID pointed to by a direct reference.

Only available if the reference is direct (i.e. an object id reference, not a symbolic one).

To find the OID of a symbolic ref, call git_reference_resolve() and then this function (or maybe use git_reference_name_to_id() to directly resolve a reference name all the way through to an OID).

extern (C) nothrow @nogc
git_reference_target

Parameters

ref_ const(libgit2_d.types.git_reference)*

The reference

Return Value

Type: const(libgit2_d.oid.git_oid)*

a pointer to the oid if available, null otherwise

Meta