git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
e9e9219
)
mailinfo: do not strip leading spaces even for a header line
author
Junio C Hamano
<redacted>
Sat, 20 Feb 2010 05:55:33 +0000
(21:55 -0800)
committer
Junio C Hamano
<redacted>
Sat, 20 Feb 2010 05:55:33 +0000
(21:55 -0800)
Signed-off-by: Junio C Hamano <redacted>
builtin-mailinfo.c
patch
|
blob
|
history
t/t5100/msg0015
patch
|
blob
|
history
diff --git
a/builtin-mailinfo.c
b/builtin-mailinfo.c
index a50ac2256cdbacd76ed44a50804212be07f949db..ce2ef6bede40fde8823336bc85762bd3e7cd4760 100644
(file)
--- 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;
}
diff --git
a/t/t5100/msg0015
b/t/t5100/msg0015
index 9577238685acecd1b5d530ffa3f4f03eef25b9b6..4abb3d5c6c4884806cdaabcc0b01acb9c1263af2 100644
(file)
--- a/
t/t5100/msg0015
+++ b/
t/t5100/msg0015
@@
-1,2
+1,2
@@
-- a list
+
- a list
- of stuff
git clone https://git.99rst.org/PROJECT