diff options
| author | Carlos Martín Nieto <[email protected]> | 2013-05-21 15:14:26 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2013-05-23 11:13:42 +0200 |
| commit | 931f187301d0c262a4ecdded891e4fed9387b4e4 (patch) | |
| tree | c0b51c9448fb14b45cfcbf890d23304312165626 /git.go | |
| parent | 4e0a28b064047513194a842e9c16d9beab545f41 (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.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() } |
