]> git.ipfire.org Git - thirdparty/git.git/commit - commit.c
commit.c: make find_commit_subject() more robust
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 22 Jun 2016 20:20:20 +0000 (22:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2016 20:24:17 +0000 (13:24 -0700)
commit4e1b06da252a7609f0c6641750e6acbec451e698
tree4522faea1c57a8dcd9f0d8e4060e686245071a18
parent77356122443039b4b65a7795d66b3d1fdeedcce8
commit.c: make find_commit_subject() more robust

Just like the pretty printing machinery, we should simply ignore
blank lines at the beginning of the commit messages.

This discrepancy was noticed when an early version of the
rebase--helper produced commit objects with more than one empty line
between the header and the commit message.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
t/t8008-blame-formats.sh