git_tree_entry_bypath

Retrieve a tree entry contained in a tree or in any of its subtrees, given its relative path.

Unlike the other lookup functions, the returned tree entry is owned by the user and must be freed explicitly with git_tree_entry_free().

extern (C) nothrow @nogc
int
git_tree_entry_bypath

Parameters

out_ libgit2_d.types.git_tree_entry**

Pointer where to store the tree entry

root const(libgit2_d.types.git_tree)*

Previously loaded tree which is the root of the relative path

path const(char)*

Path to the contained entry

Return Value

Type: int

0 on success; git_error_code.GIT_ENOTFOUND if the path does not exist

Meta