summaryrefslogtreecommitdiff
path: root/src/git/odb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/git/odb.h')
-rw-r--r--src/git/odb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/git/odb.h b/src/git/odb.h
index 0a7ee40d3..8a8cd3e5f 100644
--- a/src/git/odb.h
+++ b/src/git/odb.h
@@ -152,6 +152,17 @@ GIT_EXTERN(int) git_obj__loose_object_type(git_otype type);
*/
GIT_EXTERN(int) git_obj_hash(git_oid *id, git_obj *obj);
+/**
+ * Determine if the given object can be found in the object database.
+ *
+ * @param db database to be searched for the given object.
+ * @param id the object to search for.
+ * @return
+ * - true, if the object was found
+ * - false, otherwise
+ */
+GIT_EXTERN(int) git_odb_exists(git_odb *db, const git_oid *id);
+
/** @} */
GIT_END_DECL
#endif