]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs/refs-internal.h
Merge branch 'mh/ref-lock-entry'
[thirdparty/git.git] / refs / refs-internal.h
index 9977fea98b666bae75caf019ad43545ab953e262..b02dc5a7e3500cae1784199a82b37be020004df1 100644 (file)
@@ -83,6 +83,15 @@ long get_files_ref_lock_timeout_ms(void);
  */
 int refname_is_safe(const char *refname);
 
+/*
+ * Helper function: return true if refname, which has the specified
+ * oid and flags, can be resolved to an object in the database. If the
+ * referred-to object does not exist, emit a warning and return false.
+ */
+int ref_resolves_to_object(const char *refname,
+                          const struct object_id *oid,
+                          unsigned int flags);
+
 enum peel_status {
        /* object was peeled successfully: */
        PEEL_PEELED = 0,
@@ -661,6 +670,7 @@ struct ref_storage_be {
 };
 
 extern struct ref_storage_be refs_be_files;
+extern struct ref_storage_be refs_be_packed;
 
 /*
  * A representation of the reference store for the main repository or