Merge branch 'ot/ref-filter-object-info'
commitc83149ace6cd78cdd9b29b1ec4f0e0cb87558687
authorJunio C Hamano <gitster@pobox.com>
Fri, 17 Aug 2018 20:09:57 +0000 (17 13:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Aug 2018 20:09:57 +0000 (17 13:09 -0700)
treee608dc4051454254f4a7abd5ab62efd52c4e94cd
parent0194c9ad72b35fbf73b1b546663699ea2060a6b0
parentaa46a0da309cb60c056d712cd19e7fd8cf5b0cab
Merge branch 'ot/ref-filter-object-info'

A few atoms like %(objecttype) and %(objectsize) in the format
specifier of "for-each-ref --format=<format>" can be filled without
getting the full contents of the object, but just with the object
header.  These cases have been optimized by calling
oid_object_info() API (instead of reading and inspecting the data).

* ot/ref-filter-object-info:
  ref-filter: use oid_object_info() to get object
  ref-filter: merge get_obj and get_object
  ref-filter: initialize eaten variable
  ref-filter: fill empty fields with empty values
  ref-filter: add info_source to valid_atom
ref-filter.c