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