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.
0 or an error code