libgit2

git_commit_tree

Version:

Get the tree pointed to by a commit.

Signature

int git_commit_tree(git_tree **tree_out, git_commit *commit);

Parameters

In
tree_out

pointer where to store the tree object

In
commit

a previously loaded commit.

Returns

int

GIT_SUCCESS or an error code

Versions