ref-filter: add info_source to valid_atom
commita8e7e385cd239e9e862aba2038c43d4af07c187d
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:03:59 +0000 (17 15:03 -0700)
treea87d4995205e581e84427e34bb199ad15bed40f3
parente3331758f12da22f4103eec7efe1b5304a9be5e9
ref-filter: add info_source to valid_atom

Add the source of object data to prevent parsing of unneeded data.
The goal is to improve performance by avoiding calling expensive
functions when we don't need the information they provide
or when we could get it by using a cheaper function.

It is stored in valid_atoms because it depends on the atoms we are
interested in.

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