Loop over all the branches and issue a callback for each one.
If the callback returns a non-zero value, this will stop looping.
Filtering flags for the branch listing. Valid values are GIT_BRANCH_LOCAL, GIT_BRANCH_REMOTE or a combination of the two.
Extra parameter to callback function.
0 on success, GIT_EUSER on non-zero callback, or error code