deb-python-pygit2/docs/revparse.rst
2013-04-03 19:09:48 +02:00

325 B

Revision parsing

pygit2.Repository.revparse_single

You can use any of the fancy <rev> forms supported by libgit2:

>>> commit = repo.revparse_single('HEAD^')