commit: be more precise when searching for headers
commit50a01cc48c9a46fe75e4a014fb7847c2f4482406
authorRené Scharfe <l.s.r@web.de>
Sat, 25 Feb 2017 19:21:52 +0000 (25 20:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2017 19:20:17 +0000 (27 11:20 -0800)
tree209769b8f8f12b5621d711fe212642c9e6eed549
parentc3808ca6982b0ad7ee9b87eca9b50b9a24ec08b0
commit: be more precise when searching for headers

Search for a space character only within the current line in
read_commit_extra_header_lines() instead of searching in the whole
buffer (and possibly beyond, if it's not NUL-terminated) and then
discarding any results after the end of the current line.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c