packfile: convert find_pack_entry to object_id
[gitweb.git] / packfile.h
index a92c0b241cfa65066ab57995f0f902ddb79a3be4..782029ed07cd1cb54cd0f6cbc6fcd44cd4c8608c 100644 (file)
@@ -134,9 +134,9 @@ extern const struct packed_git *has_packed_and_bad(const unsigned char *sha1);
  * Iff a pack file in the given repository contains the object named by sha1,
  * return true and store its location to e.
  */
-extern int find_pack_entry(struct repository *r, const unsigned char *sha1, struct pack_entry *e);
+extern int find_pack_entry(struct repository *r, const struct object_id *oid, struct pack_entry *e);
 
-extern int has_sha1_pack(const unsigned char *sha1);
+extern int has_object_pack(const struct object_id *oid);
 
 extern int has_pack_index(const unsigned char *sha1);