git_libgit2_version

Return the version of the libgit2 library being currently used.

extern (C) nothrow @nogc
int
git_libgit2_version
(
int* major
,
int* minor
,
int* rev
)

Parameters

major int*

Store the major version number

minor int*

Store the minor version number

rev int*

Store the revision (patch) number

Return Value

Type: int

0 on success or an error code on failure

Meta