git_tree_entry_byname

Lookup a tree entry by its filename

This returns a git_tree_entry that is owned by the git_tree. You don't have to free it, but you must not use it after the git_tree is released.

extern (C) nothrow @nogc
git_tree_entry_byname
(,
const(char)* filename
)

Parameters

tree const(libgit2_d.types.git_tree)*

a previously loaded tree.

filename const(char)*

the filename of the desired entry

Return Value

Type: const(libgit2_d.types.git_tree_entry)*

the tree entry; null if not found

Meta