diff options
author | Stefan Beller <sbeller@google.com> | 2018-03-23 17:45:26 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-26 17:07:43 (GMT) |
commit | 0a0dd632aa9c9bcdb1b79a7fc4cf6dc161760020 (patch) | |
tree | 7e6d7440bead5d3e027543a74ed78745234824c9 /packfile.h | |
parent | 613b42f283140308435939377994c4d57d0dda23 (diff) | |
download | git-0a0dd632aa9c9bcdb1b79a7fc4cf6dc161760020.zip git-0a0dd632aa9c9bcdb1b79a7fc4cf6dc161760020.tar.gz git-0a0dd632aa9c9bcdb1b79a7fc4cf6dc161760020.tar.bz2 |
packfile: allow find_pack_entry to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r-- | packfile.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -127,8 +127,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. */ -#define find_pack_entry(r, s, e) find_pack_entry_##r(s, e) -extern int find_pack_entry_the_repository(const unsigned char *sha1, struct pack_entry *e); +extern int find_pack_entry(struct repository *r, const unsigned char *sha1, struct pack_entry *e); extern int has_sha1_pack(const unsigned char *sha1); |