git_tree_entry_byid

Lookup a tree entry by SHA value.

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.

Warning: this must examine every entry in the tree, so it is not fast.

extern (C) nothrow @nogc
git_tree_entry_byid

Parameters

tree const(libgit2_d.types.git_tree)*

a previously loaded tree.

id const(libgit2_d.oid.git_oid)*

the sha being looked for

Return Value

Type: const(libgit2_d.types.git_tree_entry)*

the tree entry; null if not found

Meta