git_odb_exists_prefix

Determine if an object can be found in the object database by an abbreviated object ID.

extern (C) nothrow @nogc
int
git_odb_exists_prefix

Parameters

out_ libgit2_d.oid.git_oid*

The full OID of the found object if just one is found.

db libgit2_d.types.git_odb*

The database to be searched for the given object.

short_id const(libgit2_d.oid.git_oid)*

A prefix of the id of the object to read.

len size_t

The length of the prefix.

Return Value

Type: int

0 if found, git_error_code.GIT_ENOTFOUND if not found, git_error_code.GIT_EAMBIGUOUS if multiple matches were found, other value < 0 if there was a read error.

Meta