def log(self, commit='master', path=None, **kwargs):
        options = {'pretty': 'raw'}
        options.update(kwargs)
        arg = [commit, '--']
        if path:
            arg.append(path)
        commits = self.git.log(*arg, **options)
        return Commit.list_from_string(self, commits)
The Commit for a treeish, and all commits leading to it.
dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/repo.py/Repo.log