aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-06-14 09:55:51 +0200
committerGitHub <noreply@github.com>2017-06-14 09:55:51 +0200
commitbf3a92052f715c507ace0cb9f2b7fb358f623abc (patch)
treecabc0e04d11a4b9c16181597fbaf8f0125440ef3 /repository.go
parente6ee8061c63e874f0bdbf719050524367c838428 (diff)
parente3b3ebda4dfa7570df9bff6bf70c2c37a7d76c7e (diff)
downloadgo-git-bf3a92052f715c507ace0cb9f2b7fb358f623abc.tar.gz
Merge pull request #421 from smola/iter-naming
fix naming of NewCommit{Pre,Post}Iterator
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go6
1 files changed, 3 insertions, 3 deletions
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