libgit2

git_tree_lookup_prefix

Version:

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

See

Signature

int git_tree_lookup_prefix(git_tree **out, git_repository *repo, const git_oid *id, size_t len);

Parameters

In
out
In
repo

the repo to use when locating the tree.

In
id

identity of the tree to locate.

size_t
In
len

the length of the short identifier

Returns

int

0 or an error code

Versions