summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-05-02 00:25:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-02 04:59:49 (GMT)
commit544443cb3cca4d5e48dfd8bd3c704a7e52b89ee6 (patch)
tree1bf195b440166774334d9da103c284abfaee6f65 /packfile.h
parent6862ebbfcbdd44b68dbdcfecd432432bdf22b2e5 (diff)
downloadgit-544443cb3cca4d5e48dfd8bd3c704a7e52b89ee6.zip
git-544443cb3cca4d5e48dfd8bd3c704a7e52b89ee6.tar.gz
git-544443cb3cca4d5e48dfd8bd3c704a7e52b89ee6.tar.bz2
packfile: convert find_pack_entry to object_id
Convert find_pack_entry and the static function fill_pack_entry to take pointers to struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r--packfile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/packfile.h b/packfile.h
index 14ca34b..782029e 100644
--- a/packfile.h
+++ b/packfile.h
@@ -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);