Retrieve the next branch from the iterator
the reference
the type of branch (local or remote-tracking)
the branch iterator
0 on success, git_error_code.GIT_ITEROVER if there are no more branches or an error code.
See Implementation
Retrieve the next branch from the iterator