Use libgit2 LIBGIT2_VER* constants directly instead of git_libgit2_version() call.