ref-filter: fill empty fields with empty values
commit20a9c156198bf195b7d32ef9a73ba01b8b19f52c
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:27 +0000 (17 15:04 -0700)
tree5d6ff684469bd0220ecb204096515ad7a4157d05
parenta8e7e385cd239e9e862aba2038c43d4af07c187d
ref-filter: fill empty fields with empty values

Atoms like "align" or "end" do not have string representation.
Earlier we had to go and parse whole object with a hope that we
could fill their string representations. It's easier to fill them
with an empty string before we start to work with whole object.

It is important to mention that we fill only these atoms that must
contain nothing. So, if we could not fill the atom because, for example,
the object is missing, we leave it with NULL.

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