We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0215bc commit 79cd011Copy full SHA for 79cd011
docs/general.rst
@@ -39,6 +39,14 @@ library that has been built against. The version number has a
39
>>> print(pygit2.LIBGIT2_VER_REVISION)
40
0
41
42
+.. py:data:: LIBGIT2_VER
43
+
44
+ Tuple value of the revision version numbers. For example, for the version
45
+ ``0.26.0``::
46
47
+ >>> print(pygit2.LIBGIT2_VER_REVISION)
48
+ (0, 26, 0)
49
50
.. py:data:: LIBGIT2_VERSION
51
52
The libgit2 version number as a string::
pygit2/__init__.py
@@ -76,6 +76,8 @@
76
GIT_FETCH_PRUNE = C.GIT_FETCH_PRUNE
77
GIT_FETCH_NO_PRUNE = C.GIT_FETCH_NO_PRUNE
78
79
+# libgit version tuple
80
+LIBGIT2_VER = (LIBGIT2_VER_MAJOR, LIBGIT2_VER_MINOR, LIBGIT2_VER_REVISION)
81
82
def init_repository(path, bare=False,
83
flags=GIT_REPOSITORY_INIT_MKPATH,
0 commit comments