git_odb_expand_ids

Determine if one or more objects can be found in the object database by their abbreviated object ID and type. The given array will be updated in place: for each abbreviated ID that is unique in the database, and of the given type (if specified), the full object ID, object ID length (GIT_OID_HEXSZ) and type will be written back to the array. For IDs that are not found (or are ambiguous), the array entry will be zeroed.

Note that since this function operates on multiple objects, the underlying database will not be asked to be reloaded if an object is not found (which is unlike other object database operations.)

extern (C) nothrow @nogc
int
git_odb_expand_ids

Parameters

db libgit2_d.types.git_odb*

The database to be searched for the given objects.

ids .git_odb_expand_id*

An array of short object IDs to search for

count size_t

The length of the ids array

Return Value

Type: int

0 on success or an error code on failure

Meta