aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorJoshua Sjoding <joshua.sjoding@scjalliance.com>2016-02-15 19:29:08 -0800
committerJoshua Sjoding <joshua.sjoding@scjalliance.com>2016-02-15 19:29:08 -0800
commit43a7081665d3b3754dd26f2b2cc8d0125ee74065 (patch)
treecff9c4630aa12aa7b0bc0d68ac0d7e69b0ff2dd5 /repository.go
parentf26d06d8b3dafae8b849bb0b812f2ce58df92423 (diff)
downloadgo-git-43a7081665d3b3754dd26f2b2cc8d0125ee74065.tar.gz
Renamed ObjectStorage.IterType() to Iter() and improved documentation for object iterators
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository.go b/repository.go
index 31e5fc7..d0bc103 100644
--- a/repository.go
+++ b/repository.go
@@ -100,7 +100,7 @@ func (r *Repository) Commit(h core.Hash) (*Commit, error) {
// Commits decode the objects into commits
func (r *Repository) Commits() *CommitIter {
- return NewCommitIter(r, r.Storage.IterType(core.CommitObject))
+ return NewCommitIter(r, r.Storage.Iter(core.CommitObject))
}
// Tree return the tree with the given hash