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

git_tree *
In
tree

a previously loaded tree.

const char *
In
filename

the filename of the desired entry

Returns

git_tree_entry *

the tree entry; NULL if not found

Versions