libgit2

git_odb_exists

Version:

Determine if the given object can be found in the object database.

Signature

int git_odb_exists(git_odb *db, const git_oid *id);

Parameters

In
db

database to be searched for the given object.

In
id

the object to search for.

Returns

int

1 if the object was found, 0 otherwise

Versions