]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs/refs-internal.h
refs: split off reading loose ref data in separate function
[thirdparty/git.git] / refs / refs-internal.h
index 357359a0be4a5bc4e360dd0e13d33ae6c04c4c70..24d79fb5c146420c2f1cda5644a959362118e024 100644 (file)
@@ -674,6 +674,12 @@ struct ref_store {
        const struct ref_storage_be *be;
 };
 
+/*
+ * Parse contents of a loose ref file.
+ */
+int parse_loose_ref_contents(const char *buf, struct object_id *oid,
+                            struct strbuf *referent, unsigned int *type);
+
 /*
  * Fill in the generic part of refs and add it to our collection of
  * reference stores.