Пример #1
0
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)
	}
}
Пример #2
0
func (c *Commit) Parents() *CommitIter {
	return NewCommitIter(c.r, core.NewObjectLookupIter(c.r.Storage, c.parents))
}