libgit2

git_tree_entry_2object

Version:

Convert a tree entry to the git_object it points too.

Signature

int git_tree_entry_2object(git_object **object_out, git_repository *repo, const git_tree_entry *entry);

Parameters

In
object_out
In
repo

repository where to lookup the pointed object

In
entry

a tree entry

Returns

int

0 on success; error code otherwise

Versions