It would be great to add support for https://github.com/libgit2/libgit2 if the library is present, instead of relying on the git command.