func (s *SuiteCommit) TestIterLookupClose(c *C) { for i, t := range iterTests { r := s.repos[t.repo] iter := NewCommitIter(r, core.NewObjectLookupIter(r.Storage, makeHashSlice(t.commits))) s.checkIterClose(c, i, iter) } }
func (c *Commit) Parents() *CommitIter { return NewCommitIter(c.r, core.NewObjectLookupIter(c.r.Storage, c.parents)) }