libgit2

git_commit_tree_oid

Version:

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.

Signature

const git_oid *git_commit_tree_oid(git_commit *commit);

Parameters

In
commit

a previously loaded commit.

Returns

the id of tree pointed to by commit.

Versions