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

GIT_SUCCESS or an error code

Versions