Add check for ErrIterOver in BranchIterator.ForEach
Add check for ErrIterOver in BranchIterator.ForEach

The BranchIterator.ForEach currently returns the ErrIterOver error if no
error had occured during the iteration. This leads to a rather unhelpful
blank error message with the error code -31 when iterating over the
branches.

This commit adds a check for ErrIterOver at the end of the ForEach
method so that the client code only has to worry about checking for nil
as apose to checking for the ErrIterOver error.

ezwiebel/git2go,ezwiebel/git2go,libgit2/git2go,ezwiebel/git2go,libgit2/git2go,clns/git2go,libgit2/git2go,pks-t/git2go,clns/git2go,pks-t/git2go,clns/git2go