trailer: forbid leading whitespace in trailers
commitc463a6b28023dd3ad7ad4542147e20c27dbc83d6
authorJonathan Tan <jonathantanmy@google.com>
Fri, 21 Oct 2016 17:55:02 +0000 (21 10:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 18:48:35 +0000 (21 11:48 -0700)
tree86aef84aedfa56c587b2480081f3b442ce3b2e3d
parent146245063e286d5a38b146bd5a38da958bd3957b
trailer: forbid leading whitespace in trailers

Currently, interpret-trailers allows leading whitespace in trailer
lines. This leads to false positives, especially for quoted lines or
bullet lists.

Forbid leading whitespace in trailers.

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