J. David Ibáñez 22021c67fc Release 0.24.0
2016-03-05 23:21:05 +01:00

1.1 KiB

General

Contents

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.

Integer value of the major version number. For example, for the version 0.24.0:

>>> print LIBGIT2_VER_MAJOR
0

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

>>> print LIBGIT2_VER_MINOR
24

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

>>> print LIBGIT2_VER_REVISION
0

The libgit2 version number as a string:

>>> print LIBGIT2_VERSION
'0.24.0'

Errors

pygit2.GitError