Return the version of the libgit2 library being currently used.
Store the major version number
Store the minor version number
Store the revision (patch) number
0 on success or an error code on failure