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

git_odb *
In
db

database to be searched for the given object.

const git_oid *
In
id

the object to search for.

Returns

int
  • true, if the object was found
  • false, otherwise

Versions