summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2013-05-21 15:14:26 +0200
committerCarlos Martín Nieto <[email protected]>2013-05-23 11:13:42 +0200
commit931f187301d0c262a4ecdded891e4fed9387b4e4 (patch)
treec0b51c9448fb14b45cfcbf890d23304312165626 /git.go
parent4e0a28b064047513194a842e9c16d9beab545f41 (diff)
Implement a reference iterator
Wrap the reference iterators, and provide a Iter() function to get them through a channel.
Diffstat (limited to 'git.go')
-rw-r--r--git.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/git.go b/git.go
index fdc640a..19f4a32 100644
--- a/git.go
+++ b/git.go
@@ -8,6 +8,7 @@ package git
import "C"
import (
"bytes"
+ "errors"
"unsafe"
"strings"
)
@@ -18,6 +19,10 @@ const (
ENOTFOUND = C.GIT_ENOTFOUND
)
+var (
+ ErrIterOver = errors.New("Iteration is over")
+)
+
func init() {
C.git_threads_init()
}