trailer: support values folded to multiple lines
commit60ef86a16268bfb1efb28bcb3f1b646bfad1931c
authorJonathan Tan <jonathantanmy@google.com>
Fri, 21 Oct 2016 17:55:03 +0000 (21 10:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 18:48:35 +0000 (21 11:48 -0700)
tree189c2f5488d8c8a92164e077eb091f74cbf94a49
parentc463a6b28023dd3ad7ad4542147e20c27dbc83d6
trailer: support values folded to multiple lines

Currently, interpret-trailers requires that a trailer be only on 1 line.
For example:

a: first line
   second line

would be interpreted as one trailer line followed by one non-trailer line.

Make interpret-trailers support RFC 822-style folding, treating those
lines as one logical trailer.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-interpret-trailers.txt
t/t7513-interpret-trailers.sh
trailer.c