libgit2

git_tree_lookup

Version:

Lookup a tree object from the repository.

Signature

int git_tree_lookup(git_tree **out, git_repository *repo, const git_oid *id);

Parameters

In
out

Pointer to the looked up tree

In
repo

The repo to use when locating the tree.

In
id

Identity of the tree to locate.

Returns

int

0 or an error code

Versions