summaryrefslogtreecommitdiff
path: root/branch.go
diff options
context:
space:
mode:
authorMirko Nosenzo <[email protected]>2016-10-08 11:33:56 +0200
committerMirko Nosenzo <[email protected]>2016-10-08 11:33:56 +0200
commit4567e4f7fa621df30e84ee643a27998776919b26 (patch)
tree203c24d93683a2bda5bab19c578a2c108159337e /branch.go
parent717a47f7547811622fb1c08c28262a8c63af96fe (diff)
parent22091886372e73de5d66168e8665775676ec13c5 (diff)
Merge remote-tracking branch 'upstream/v24' into remote-refinements
Diffstat (limited to 'branch.go')
-rw-r--r--branch.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/branch.go b/branch.go
index df72dba..d381c23 100644
--- a/branch.go
+++ b/branch.go
@@ -13,6 +13,7 @@ import (
type BranchType uint
const (
+ BranchAll BranchType = C.GIT_BRANCH_ALL
BranchLocal BranchType = C.GIT_BRANCH_LOCAL
BranchRemote BranchType = C.GIT_BRANCH_REMOTE
)
@@ -72,6 +73,10 @@ func (i *BranchIterator) ForEach(f BranchIteratorFunc) error {
}
}
+ if err != nil && IsErrorCode(err, ErrIterOver) {
+ return nil
+ }
+
return err
}