$> git branch
>>> regex = re.compile('^refs/heads/') >>> branches = filter(lambda r: regex.match(r), repo.listall_references())
Note that the next release will probably allow repo.listall_branches().
pygit2 Recipes
git-init
Enter search terms or a module, class or function name.