summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorVicent Martí <[email protected]>2013-06-13 10:14:09 -0700
committerVicent Martí <[email protected]>2013-06-13 10:14:09 -0700
commit7823b142665d079a04e05ec0500e28145eeeb165 (patch)
tree7f35dbeda4a012f6303873e6b06e4b7a90b76037 /git.go
parent81c9f8df5bd9b7a075216e745108b31abc1734ae (diff)
parent931f187301d0c262a4ecdded891e4fed9387b4e4 (diff)
Merge pull request #26 from carlosmn/ref-iter
Implement a reference iterator
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 bc97064..f5c69fd 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()
}