libgit2

git_treebuilder_get

Version:

Get an entry from the builder from its filename

The returned entry is owned by the builder and should not be freed manually.

Signature

const git_tree_entry *git_treebuilder_get(git_treebuilder *bld, const char *filename);

Parameters

In
bld

Tree builder

const char *
In
filename

Name of the entry

Returns

pointer to the entry; NULL if not found

Versions