libgit2

git_odb_exists_ext

Version:

Determine if the given object can be found in the object database, with extended options.

Signature

int git_odb_exists_ext(git_odb *db, const git_oid *id, unsigned int flags);

Parameters

In
db

database to be searched for the given object.

In
id

the object to search for.

unsigned int
In
flags

flags affecting the lookup (see git_odb_lookup_flags_t)

Returns

int

1 if the object was found, 0 otherwise

Versions