git_reference_shorthand

Get the reference's short name

This will transform the reference name into a name "human-readable" version. If no shortname is appropriate, it will return the full name.

The memory is owned by the reference and must not be freed.

extern (C) nothrow @nogc
const(char)*
git_reference_shorthand

Parameters

ref_ const(libgit2_d.types.git_reference)*

a reference

Return Value

Type: const(char)*

the human-readable version of the name

Meta