aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/object.go4
-rw-r--r--repository.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/object.go b/core/object.go
index 205de95..2c41245 100644
--- a/core/object.go
+++ b/core/object.go
@@ -21,7 +21,7 @@ type ObjectStorage interface {
New() Object
Set(Object) Hash
Get(Hash) (Object, bool)
- Iter(ObjectType) ObjectIter
+ IterType(ObjectType) ObjectIter
}
// ObjectType internal object type's
@@ -189,7 +189,7 @@ func (o *RAWObjectStorage) Get(h Hash) (Object, bool) {
return obj, ok
}
-func (o *RAWObjectStorage) Iter(t ObjectType) ObjectIter {
+func (o *RAWObjectStorage) IterType(t ObjectType) ObjectIter {
var series []Object
switch t {
case CommitObject:
diff --git a/repository.go b/repository.go
index d0bc103..31e5fc7 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.Iter(core.CommitObject))
+ return NewCommitIter(r, r.Storage.IterType(core.CommitObject))
}
// Tree return the tree with the given hash