]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
trailer: be stricter in parsing separators
authorJonathan Tan <jonathantanmy@google.com>
Wed, 2 Nov 2016 17:29:16 +0000 (10:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Nov 2016 22:22:08 +0000 (14:22 -0800)
commite4319562bc2834096fade432fd90c985b96476db
tree77709e8ee4d037edf8e14138f6d2984d441c2b2d
parentbe5a750939c212bc0781ffa04fabcfd2b2bd744e
trailer: be stricter in parsing separators

Currently, a line is interpreted to be a trailer line if it contains a
separator. Make parsing stricter by requiring the text on the left of
the separator, if not the empty string, to be of the "<token><optional
whitespace>" form.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c