Get the id of the tree pointed to by a commit. This differs from git_commit_tree in that no attempts are made to fetch an object from the ODB.
git_commit_tree
a previously loaded commit.
the id of tree pointed to by commit.