1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
**********************************************************************
Revision parsing
**********************************************************************
.. autoclass:: pygit2.Repository
:members: revparse, revparse_ext, revparse_single
:noindex:
You can use any of the fancy `<rev>` forms supported by libgit2::
>>> commit = repo.revparse_single('HEAD^')
.. autoclass:: pygit2.RevSpec
:members:
Constants:
.. py:data:: GIT_REVPARSE_SINGLE
.. py:data:: GIT_REVPARSE_RANGE
.. py:data:: GIT_REVPARSE_MERGE_BASE
|