pack: move has_sha1_pack()

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jonathan Tan
2017-08-18 15:20:36 -07:00
committed by Junio C Hamano
parent 1a1e5d4f47
commit 150e3001d0
7 changed files with 11 additions and 8 deletions

View File

@ -1631,12 +1631,6 @@ int has_pack_index(const unsigned char *sha1)
return 1;
}
int has_sha1_pack(const unsigned char *sha1)
{
struct pack_entry e;
return find_pack_entry(sha1, &e);
}
int has_sha1_file_with_flags(const unsigned char *sha1, int flags)
{
if (!startup_info->have_repository)