pack: move clear_delta_base_cache(), packed_object_info(), unpack_entry()
authorJonathan Tan <jonathantanmy@google.com>
Fri, 18 Aug 2017 22:20:30 +0000 (15:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Aug 2017 22:12:07 +0000 (15:12 -0700)
commitf1d8130be0a7229b215b76eac54c561a0124bc99
treee1a89e63245fc95babaa0d2186962d6b09773d57
parent3588dd6e994b38b02c2f60544fe2f69ce5fdf927
pack: move clear_delta_base_cache(), packed_object_info(), unpack_entry()

Both sha1_file.c and packfile.c now need read_object(), so a copy of
read_object() was created in packfile.c.

This patch makes both mark_bad_packed_object() and has_packed_and_bad()
global. Unlike most of the other patches in this series, these 2
functions need to remain global.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
packfile.c
packfile.h
sha1_file.c