libgit2

git_reference_target

Version:

Get full name to the reference pointed by this reference

Only available if the reference is symbolic

Signature

const char *git_reference_target(git_reference *ref);

Parameters

In
ref

The reference

Returns

const char *

a pointer to the name if available, NULL otherwise

Versions