libgit2

git_branch_next

Version:

Retrieve the next branch from the iterator

Signature

int git_branch_next(git_reference **out, git_branch_t *out_type, git_branch_iterator *iter);

Parameters

In
out

the reference

In
out_type

the type of branch (local or remote-tracking)

In
iter

the branch iterator

Returns

int

0 on success, GIT_ITEROVER if there are no more branches or an error code.

Versions