author | Andy Whitcroft <apw@shadowen.org> | |
Wed, 5 Mar 2008 14:24:10 +0000 (14:24 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 5 Mar 2008 21:28:39 +0000 (13:28 -0800) | ||
commit | c1ce83a5b64618a8a4ac313da82c156558cbe259 | |
tree | 7f3a23f2e21296857f5ed13f16c20fed8d0c6f1f | tree | snapshot |
parent | 52dce39762fbec75b2d561e5dedb25b8e51f83eb | commit | diff |
shortlog: take the first populated line of the description
Way back the perl version of shortlog would take the first populated line
of the commit body. The builtin version mearly takes the first line.
This leads to empty shortlog entries when there is some viable text in
the commit.
Reinstate this behaviour igoring all lines with nothing but whitespace.
This is often useful when dealing with commits imported from foreign SCMs
that do not tidy up the log message of useless blank lines at the beginning.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Way back the perl version of shortlog would take the first populated line
of the commit body. The builtin version mearly takes the first line.
This leads to empty shortlog entries when there is some viable text in
the commit.
Reinstate this behaviour igoring all lines with nothing but whitespace.
This is often useful when dealing with commits imported from foreign SCMs
that do not tidy up the log message of useless blank lines at the beginning.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-shortlog.c | diff | blob | history |