ref-filter: use oid_object_info() to get object
commitaa46a0da309cb60c056d712cd19e7fd8cf5b0cab
authorOlga Telezhnaya <olyatelezhnaya@gmail.com>
Tue, 17 Jul 2018 08:22:57 +0000 (17 08:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jul 2018 22:04:33 +0000 (17 15:04 -0700)
tree46f200c9dd45f2afd4351037ed1c4e30bd1b4ba5
parente2255179f68970eb8ed7118334a23970283cb8ec
ref-filter: use oid_object_info() to get object

Use oid_object_info_extended() to get object info instead of
read_object_file().
It will help to handle some requests faster (e.g., we do not need to
parse whole object if we need to know %(objectsize)).
It could also help us to add new atoms such as %(objectsize:disk)
and %(deltabase).

Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c