trailer: display a trailer without its trailing newline
commitd52adf1f328162a9513940913ced044d24c0212f
authorChristian Couder <chriscool@tuxfamily.org>
Sun, 9 Nov 2014 09:23:40 +0000 (9 10:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Nov 2014 17:43:59 +0000 (10 09:43 -0800)
tree81f229ea345aa9194af1a33b206b053984e15514
parent2887103b35b3b40025ca5060713dfb1e1c8c3b20
trailer: display a trailer without its trailing newline

Trailers passed to the parse_trailer() function often have
a trailing newline. When erroring out, we should display
the invalid trailer properly, that means without any
trailing newline.

Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c