Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.15 KB

general.rst

File metadata and controls

56 lines (36 loc) · 1.15 KB

General

Contents

Top level constants and exceptions from the library.

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.21.1``::

      >>> print LIBGIT2_VER_MAJOR
      0

.. py:data:: LIBGIT2_VER_MINOR

   Integer value of the minor version number. For example, for the version
   ``0.21.1``::

      >>> print LIBGIT2_VER_MINOR
      21

.. py:data:: LIBGIT2_VER_REVISION

   Integer value of the revision version number. For example, for the version
   ``0.21.1``::

      >>> print LIBGIT2_VER_REVISION
      1

.. py:data:: LIBGIT2_VERSION

   The libgit2 version number as a string::

      >>> print LIBGIT2_VERSION
      '0.21.1'

.. autoexception:: pygit2.GitError
   :members:
   :show-inheritance:
   :undoc-members: