git_object_lookup_bypath

Lookup an object that represents a tree entry.

extern (C) nothrow @nogc
int
git_object_lookup_bypath

Parameters

out_ libgit2_d.types.git_object**

buffer that receives a pointer to the object (which must be freed by the caller)

treeish const(libgit2_d.types.git_object)*

root object that can be peeled to a tree

path const(char)*

relative path from the root object to the desired object

type libgit2_d.types.git_object_t

type of object desired

Return Value

Type: int

0 on success, or an error code

Meta