diff options
author | Santiago M. Mola <santi@mola.io> | 2017-06-13 14:25:38 +0200 |
---|---|---|
committer | Santiago M. Mola <santi@mola.io> | 2017-06-13 14:25:38 +0200 |
commit | e3b3ebda4dfa7570df9bff6bf70c2c37a7d76c7e (patch) | |
tree | d2d5da67c53842f24d6e7a1e531706f4f318ae4b /remote.go | |
parent | 2a00316b65585be2bf68e1ea9c0e42c6af4f5679 (diff) | |
download | go-git-e3b3ebda4dfa7570df9bff6bf70c2c37a7d76c7e.tar.gz |
fix naming of NewCommit{Pre,Post}Iterator
Use Iter suffix, just as all other iterators in the project.
Use Preorder and Postorder to be more clear.
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -420,7 +420,7 @@ func isFastForward(s storer.EncodedObjectStorer, old, new plumbing.Hash) (bool, } found := false - iter := object.NewCommitPreIterator(c) + iter := object.NewCommitPreorderIter(c) return found, iter.ForEach(func(c *object.Commit) error { if c.Hash != old { return nil |