Correct LIBGIT2_VERSION name and add documentation
LIBGIT2_VERSION was previously recorded as LIBGIT2_VER_VERSION which is incorrect. We also add basic explanations to all the constants so that the page is a little less bare. Perhaps this should be done as autodoc style comments in the code but I guess not.
This commit is contained in:
@@ -6,14 +6,45 @@ General
|
|||||||
:local:
|
:local:
|
||||||
|
|
||||||
|
|
||||||
|
Top level constants and exceptions from the library.
|
||||||
|
|
||||||
Constants
|
Constants
|
||||||
=========
|
=========
|
||||||
|
|
||||||
.. py:data:: LIBGIT2_VER_MAJOR
|
The following constants provide information about the version of the libgit2
|
||||||
.. py:data:: LIBGIT2_VER_MINOR
|
library that has been built against. The version number has a
|
||||||
.. py:data:: LIBGIT2_VER_REVISION
|
``MAJOR.MINOR.REVISION`` format.
|
||||||
.. py:data:: LIBGIT2_VER_VERSION
|
|
||||||
|
|
||||||
|
.. py:data:: LIBGIT2_VER_MAJOR
|
||||||
|
|
||||||
|
Integer value of the major version number. For example, for the version
|
||||||
|
``0.20.0``::
|
||||||
|
|
||||||
|
>>> print LIBGIT2_VER_MAJOR
|
||||||
|
0
|
||||||
|
|
||||||
|
.. py:data:: LIBGIT2_VER_MINOR
|
||||||
|
|
||||||
|
Integer value of the minor version number. For example, for the version
|
||||||
|
``0.20.0``::
|
||||||
|
|
||||||
|
>>> print LIBGIT2_VER_MINOR
|
||||||
|
20
|
||||||
|
|
||||||
|
.. py:data:: LIBGIT2_VER_REVISION
|
||||||
|
|
||||||
|
Integer value of the revision version number. For example, for the version
|
||||||
|
``0.20.0``::
|
||||||
|
|
||||||
|
>>> print LIBGIT2_VER_REVISION
|
||||||
|
0
|
||||||
|
|
||||||
|
.. py:data:: LIBGIT2_VERSION
|
||||||
|
|
||||||
|
The libgit2 version number as a string::
|
||||||
|
|
||||||
|
>>> print LIBGIT2_VERSION
|
||||||
|
'0.20.0'
|
||||||
|
|
||||||
Errors
|
Errors
|
||||||
======
|
======
|
||||||
@@ -22,3 +53,4 @@ Errors
|
|||||||
:members:
|
:members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
:undoc-members:
|
:undoc-members:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user