libgit2

git_reference_symbolic_target

Version:

Get full name to the reference pointed to by a symbolic reference.

Only available if the reference is symbolic.

Signature

const char *git_reference_symbolic_target(const git_reference *ref);

Parameters

In
ref

The reference

Returns

const char *

a pointer to the name if available, NULL otherwise

Versions