aboutsummaryrefslogtreecommitdiffstats
path: root/commit.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-11-07 20:29:58 +0100
committerGitHub <noreply@github.com>2016-11-07 20:29:58 +0100
commit0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23 (patch)
treeb9c7485fe99e6e89fa736ceb0223aeb2ecddb77c /commit.go
parentf6ed7424cbf33c7013332d7e95b4262a4bc4a523 (diff)
downloadgo-git-0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23.tar.gz
global storage interface refactor (#112)
* core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and ReferenceStorer * rebase * general, changes request by @alcortes * general, changes request by @alcortes
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/commit.go b/commit.go
index a66cef8..c42236e 100644
--- a/commit.go
+++ b/commit.go
@@ -37,11 +37,9 @@ func (c *Commit) Tree() (*Tree, error) {
// Parents return a CommitIter to the parent Commits
func (c *Commit) Parents() *CommitIter {
- return NewCommitIter(c.r, core.NewObjectLookupIter(
- c.r.s.ObjectStorage(),
- core.CommitObject,
- c.parents,
- ))
+ return NewCommitIter(c.r,
+ core.NewObjectLookupIter(c.r.s, core.CommitObject, c.parents),
+ )
}
// NumParents returns the number of parents in a commit.