more efficient if you use a generator `return commit in (c.hexsha for c in self.repo.iter_commits(branch))`