Draft for a libgit2 implementation of version_git