]> git.proxmox.com Git - libgit2.git/commit
commit: correctly detect the start of the commit message
authorCarlos Martín Nieto <cmn@dwim.me>
Mon, 15 Apr 2013 10:24:08 +0000 (12:24 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Mon, 15 Apr 2013 10:24:08 +0000 (12:24 +0200)
commit0efae3b22e7472b95174632c323137a2b21b9c51
tree2c41d4ca3f9f27bf105ea0d9819f15b541d6c646
parent041ed367ab026583d6607b5029a0c63146a90215
commit: correctly detect the start of the commit message

The end of the header is signaled by to consecutive LFs and the commit
message starts immediately after. Jumping over LFs at the start of the
message is a bug and leads to creating different commits if
when rebuilding history.

This also fixes an empty commit message being returned as "\n".
src/commit.c
tests-clar/commit/parse.c