git_tree_lookup_prefix

Lookup a tree object from the repository, given a prefix of its identifier (short id).

@see git_object_lookup_prefix

extern (C) nothrow @nogc
int
git_tree_lookup_prefix

Parameters

out_ libgit2_d.types.git_tree**

pointer to the looked up tree

repo libgit2_d.types.git_repository*

the repo to use when locating the tree.

id const(libgit2_d.oid.git_oid)*

identity of the tree to locate.

len size_t

the length of the short identifier

Return Value

Type: int

0 or an error code

Meta