Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 325 Bytes

revparse.rst

File metadata and controls

9 lines (6 loc) · 325 Bytes

Revision parsing

.. automethod:: pygit2.Repository.revparse_single

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

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