sha1_file: remove read_packed_sha1()
authorJonathan Tan <jonathantanmy@google.com>
Fri, 11 Aug 2017 20:36:15 +0000 (13:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Aug 2017 22:07:01 +0000 (15:07 -0700)
Use read_object() in its place instead. This avoids duplication of code.

This makes force_object_loose() slightly slower (because of a redundant
check of loose object storage), but only in the error case.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found