pretty.c: delimit "%(trailers)" arguments with ","
commit84ff053d47c20c9f417f857e4adac0bcd8e01f0d
authorTaylor Blau <me@ttaylorr.com>
Sun, 1 Oct 2017 16:18:47 +0000 (1 09:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Oct 2017 00:22:52 +0000 (2 09:22 +0900)
tree8d46824980c9d3082724658a22f999bc41409317
parentea220ee40cbb03a63ebad2be902057bf742492fd
pretty.c: delimit "%(trailers)" arguments with ","

In preparation for adding consistent "%(trailers)" atom options to
`git-for-each-ref(1)`'s "--format" argument, change "%(trailers)" in
pretty.c to separate sub-arguments with a ",", instead of a ":".

Multiple sub-arguments are given either as "%(trailers:unfold,only)" or
"%(trailers:only,unfold)".

This change disambiguates between "top-level" arguments, and arguments
given to the trailers atom itself. It is consistent with the behavior of
"%(upstream)" and "%(push)" atoms.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c
t/t4205-log-pretty-formats.sh