]> git.ipfire.org Git - thirdparty/git.git/commit - builtin-mailinfo.c
mailinfo: do not get confused with logical lines that are too long.
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 26 Feb 2007 19:10:59 +0000 (11:10 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 27 Feb 2007 09:02:32 +0000 (01:02 -0800)
commit34fc5cefa7068492d5103b40dca1b55f69986eb8
tree639ff5e39147164456cf232e0d9e92380c35eb2f
parent0d9b9ab1284ce125fd49cf7dbf4d28e0540cf035
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>
builtin-mailinfo.c
t/t5100-mailinfo.sh
t/t5100/info0006 [new file with mode: 0644]
t/t5100/msg0006 [new file with mode: 0644]
t/t5100/patch0006 [new file with mode: 0644]
t/t5100/sample.mbox