author | Linus Torvalds <torvalds@linux-foundation.org> | |
Mon, 26 Feb 2007 19:10:59 +0000 (11:10 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 27 Feb 2007 09:02:32 +0000 (01:02 -0800) | ||
commit | 34fc5cefa7068492d5103b40dca1b55f69986eb8 | |
tree | 639ff5e39147164456cf232e0d9e92380c35eb2f | tree | snapshot |
parent | 0d9b9ab1284ce125fd49cf7dbf4d28e0540cf035 | commit | diff |
mailinfo: do not get confused with logical lines that are too long.
It basically considers all the continuation lines to be lines of their
own, and if the total line is bigger than what we can fit in it, we just
truncate the result rather than stop in the middle and then get confused
when we try to parse the "next" line (which is just the remainder of the
first line).
[jc: added test, and tightened boundary a bit per list discussion.]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
It basically considers all the continuation lines to be lines of their
own, and if the total line is bigger than what we can fit in it, we just
truncate the result rather than stop in the middle and then get confused
when we try to parse the "next" line (which is just the remainder of the
first line).
[jc: added test, and tightened boundary a bit per list discussion.]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-mailinfo.c | diff | blob | history | |
t/t5100-mailinfo.sh | diff | blob | history | |
t/t5100/info0006 | [new file with mode: 0644] | blob |
t/t5100/msg0006 | [new file with mode: 0644] | blob |
t/t5100/patch0006 | [new file with mode: 0644] | blob |
t/t5100/sample.mbox | diff | blob | history |