sha1_file: set whence in storage-specific info fn
authorJonathan Tan <jonathantanmy@google.com>
Fri, 11 Aug 2017 20:36:14 +0000 (13:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Aug 2017 21:35:02 +0000 (14:35 -0700)
commit3ab0fb0646d25266ec5bebd1420f691fc5a13d8a
tree28707272109b9d734cd723fdb0106c7bb60ff5d3
parent4274c698f46a9bc45834c4904e7e113450c042fb
sha1_file: set whence in storage-specific info fn

Move the setting of oi->whence to sha1_loose_object_info() and
packed_object_info().

This allows sha1_object_info_extended() to not need to know about the
delta base cache. This will be useful during a future refactoring in
which packfile-related functions, including the handling of the delta
base cache, will be moved to a separate file.

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