libgit2

git_tree_lookup

Version:

Lookup a tree object from the repository.

Signature

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

Parameters

In
tree

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