libgit2

git_tree_entry_byname

Version:

Lookup a tree entry by its filename

Signature

git_tree_entry *git_tree_entry_byname(git_tree *tree, const char *filename);

Parameters

In
tree

a previously loaded tree.

const char *
In
filename

the filename of the desired entry

Returns

the tree entry; NULL if not found

Versions