libgit2

git_branch_iterator_new

Version:

Create an iterator which loops over the requested branches.

Signature

int git_branch_iterator_new(git_branch_iterator **out, git_repository *repo, git_branch_t list_flags);

Parameters

In
out

the iterator

In
repo

Repository where to find the branches.

In
list_flags

Filtering flags for the branch listing. Valid values are GIT_BRANCH_LOCAL, GIT_BRANCH_REMOTE or GIT_BRANCH_ALL.

Returns

int

0 on success or an error code

Versions