@classmethod
    def find_all(cls, repo, **kwargs):

        options = {'sort': "committerdate",
                   'format': "%(refname)%00%(objectname)"}
        options.update(kwargs)

        output = repo.git.for_each_ref("refs/heads", **options)
        return cls.list_from_string(repo, output)
Find all Heads in the repository
dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/head.py/Head.find_all