libgit2

git_tree_entry_to_object

Version:

Convert a tree entry to the git_object it points to.

You must call git_object_free() on the object when you are done with it.

Signature

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

Parameters

In
object_out

pointer to the converted object

In
repo

repository where to lookup the pointed object

In
entry

a tree entry

Returns

int

0 or an error code

Versions