diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-08 23:46:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 23:46:38 +0100 |
commit | ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d (patch) | |
tree | 223f36f336ba3414b1e45cac8af6c4744a5d7ef6 /file.go | |
parent | e523701393598f4fa241dd407af9ff8925507a1a (diff) | |
download | go-git-ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d.tar.gz |
new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
Diffstat (limited to 'file.go')
-rw-r--r-- | file.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,7 +6,7 @@ import ( "os" "strings" - "gopkg.in/src-d/go-git.v4/core" + "gopkg.in/src-d/go-git.v4/plumbing/storer" ) // File represents git file objects. @@ -83,7 +83,7 @@ func (iter *FileIter) Next() (*File, error) { } // ForEach call the cb function for each file contained on this iter until -// an error happends or the end of the iter is reached. If core.ErrStop is sent +// an error happends or the end of the iter is reached. If plumbing.ErrStop is sent // the iteration is stop but no error is returned. The iterator is closed. func (iter *FileIter) ForEach(cb func(*File) error) error { defer iter.Close() @@ -99,7 +99,7 @@ func (iter *FileIter) ForEach(cb func(*File) error) error { } if err := cb(f); err != nil { - if err == core.ErrStop { + if err == storer.ErrStop { return nil } |