J. David Ibáñez 66280af83a Release 0.24.2
2016-11-01 20:34:50 +01:00

57 lines
1.1 KiB
ReStructuredText

**********************************************************************
General
**********************************************************************
.. contents:: Contents
:local:
Top level constants and exceptions from the library.
Constants
=========
The following constants provide information about the version of the libgit2
library that has been built against. The version number has a
``MAJOR.MINOR.REVISION`` format.
.. py:data:: LIBGIT2_VER_MAJOR
Integer value of the major version number. For example, for the version
``0.24.2``::
>>> print LIBGIT2_VER_MAJOR
0
.. py:data:: LIBGIT2_VER_MINOR
Integer value of the minor version number. For example, for the version
``0.24.2``::
>>> print LIBGIT2_VER_MINOR
24
.. py:data:: LIBGIT2_VER_REVISION
Integer value of the revision version number. For example, for the version
``0.24.2``::
>>> print LIBGIT2_VER_REVISION
2
.. py:data:: LIBGIT2_VERSION
The libgit2 version number as a string::
>>> print LIBGIT2_VERSION
'0.24.2'
Errors
======
.. autoexception:: pygit2.GitError
:members:
:show-inheritance:
:undoc-members: