libgit2

git_libgit2_version

Version:

Return the version of the libgit2 library being currently used.

Signature

int git_libgit2_version(int *major, int *minor, int *rev);

Parameters

int *
In
major

Store the major version number

int *
In
minor

Store the minor version number

int *
In
rev

Store the revision (patch) number

Returns

int

0 on success or an error code on failure

Versions