From e3b3ebda4dfa7570df9bff6bf70c2c37a7d76c7e Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Tue, 13 Jun 2017 14:25:38 +0200 Subject: 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. --- repository.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'repository.go') diff --git a/repository.go b/repository.go index 35aae52..a3e441b 100644 --- a/repository.go +++ b/repository.go @@ -694,7 +694,7 @@ func (r *Repository) Log(o *LogOptions) (object.CommitIter, error) { return nil, err } - return object.NewCommitPreIterator(commit), nil + return object.NewCommitPreorderIter(commit), nil } // Tags returns all the References from Tags. This method returns all the tag @@ -927,7 +927,7 @@ func (r *Repository) ResolveRevision(rev plumbing.Revision) (*plumbing.Hash, err commit = c } case revision.CaretReg: - history := object.NewCommitPreIterator(commit) + history := object.NewCommitPreorderIter(commit) re := item.(revision.CaretReg).Regexp negate := item.(revision.CaretReg).Negate @@ -957,7 +957,7 @@ func (r *Repository) ResolveRevision(rev plumbing.Revision) (*plumbing.Hash, err commit = c case revision.AtDate: - history := object.NewCommitPreIterator(commit) + history := object.NewCommitPreorderIter(commit) date := item.(revision.AtDate).Date -- cgit