File: revparse.rst

package info (click to toggle)
python-pygit2 1.4.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,328 kB
  • sloc: ansic: 11,016; python: 5,943; sh: 275; makefile: 19
file content (21 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (2)
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