diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-02-20 06:55:33 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-20 06:55:33 +0100 |
commit | 470b452628d80e89ee869b6b86af6c536ba0b24d (patch) | |
tree | 29a47ad4b05e7290f5787efb664f98d5c0448d75 /builtin-mailinfo.c | |
parent | Documentation: Fix indentation problem in git-commit(1) (diff) | |
download | git-470b452628d80e89ee869b6b86af6c536ba0b24d.tar.xz git-470b452628d80e89ee869b6b86af6c536ba0b24d.zip |
mailinfo: do not strip leading spaces even for a header line
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-mailinfo.c')
-rw-r--r-- | builtin-mailinfo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c index a50ac2256c..ce2ef6bede 100644 --- a/builtin-mailinfo.c +++ b/builtin-mailinfo.c @@ -779,8 +779,7 @@ static int handle_commit_msg(struct strbuf *line) return 0; if (still_looking) { - strbuf_ltrim(line); - if (!line->len) + if (!line->len || (line->len == 1 && line->buf[0] == '\n')) return 0; } |