diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-14 18:21:10 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-14 18:21:10 +0200 |
commit | f6fe29c80d11662a169806dcf413ecdedcb28fa3 (patch) | |
tree | 9958034c27521f720f8c5d83c12120ada196f48a /commit.go | |
parent | 91bf16b2336e6f80f0742be729582fe5fbbada83 (diff) | |
download | go-git-f6fe29c80d11662a169806dcf413ecdedcb28fa3.tar.gz |
core: Storage, removing err returning *Storages
Diffstat (limited to 'commit.go')
-rw-r--r-- | commit.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -37,7 +37,10 @@ func (c *Commit) Tree() *Tree { // Parents return a CommitIter to the parent Commits func (c *Commit) Parents() *CommitIter { - return NewCommitIter(c.r, core.NewObjectLookupIter(c.r.os, c.parents)) + return NewCommitIter(c.r, core.NewObjectLookupIter( + c.r.s.ObjectStorage(), + c.parents, + )) } // NumParents returns the number of parents in a commit. |