Thanks to visit codestin.com Credit goes to libgit2.org
Get the tree pointed to by a commit.
pointer where to store the tree object
a previously loaded commit.
GIT_SUCCESS or an error code