packfile: convert find_pack_entry to object_id
[gitweb.git] / packfile.h
index 14ca34bcbd970fa645ee759de2ae35778037d595..782029ed07cd1cb54cd0f6cbc6fcd44cd4c8608c 100644 (file)
@@ -134,7 +134,7 @@ 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_object_pack(const struct object_id *oid);