ref-filter.c: use trailer_opts to format trailers
authorTaylor Blau <me@ttaylorr.com>
Mon, 2 Oct 2017 05:25:23 +0000 (22:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2017 12:15:30 +0000 (21:15 +0900)
commit67a20a0010224255bbd5bb9fa4f95595c3e1ba7c
tree54015139e20f0cb39eba25ee2d9011aaa07f5356
parent624b44d3763bd10e51fdcf66a205535140ca8539
ref-filter.c: use trailer_opts to format trailers

Fill trailer_opts with "unfold" and "only" to match the sub-arguments
given to the "%(trailers)" atom. Then, let's use the filled trailer_opts
instance with 'format_trailers_from_commit' in order to format trailers
in the desired manner.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-for-each-ref.txt
ref-filter.c
t/t6300-for-each-ref.sh