libgit2

git_reference_next_name

Version:

Get the next reference's name

This function is provided for convenience in case only the names are interesting as it avoids the allocation of the git_reference object which git_reference_next() needs.

Signature

int git_reference_next_name(const char **out, git_reference_iterator *iter);

Parameters

const char **
In
out

pointer in which to store the string

In
iter

the iterator

Returns

int

0, GIT_ITEROVER if there are no more; or an error code

Versions