git_reference_resolve

Resolve a symbolic reference to a direct reference.

This method iteratively peels a symbolic reference until it resolves to a direct reference to an OID.

The peeled reference is returned in the resolved_ref argument, and must be freed manually once it's no longer needed.

If a direct reference is passed as an argument, a copy of that reference is returned. This copy must be manually freed too.

extern (C) nothrow @nogc
int
git_reference_resolve

Parameters

out_ libgit2_d.types.git_reference**

Pointer to the peeled reference

ref_ const(libgit2_d.types.git_reference)*

The reference

Return Value

Type: int

0 or an error code

Meta