aboutsummaryrefslogtreecommitdiff
path: root/t/t5100/patch0006
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2007-02-26 11:10:59 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-27 01:02:32 -0800
commit34fc5cefa7068492d5103b40dca1b55f69986eb8 (patch)
tree639ff5e39147164456cf232e0d9e92380c35eb2f /t/t5100/patch0006
parent0d9b9ab1284ce125fd49cf7dbf4d28e0540cf035 (diff)
downloadgit-34fc5cefa7068492d5103b40dca1b55f69986eb8.tar.gz
git-34fc5cefa7068492d5103b40dca1b55f69986eb8.tar.xz
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>
Diffstat (limited to 't/t5100/patch0006')
-rw-r--r--t/t5100/patch000614
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t5100/patch0006 b/t/t5100/patch0006
new file mode 100644
index 000000000..8ce155167
--- /dev/null
+++ b/t/t5100/patch0006
@@ -0,0 +1,14 @@
+---
+ foo | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/foo b/foo
+index 9123cdc..918dcf8 100644
+--- a/foo
++++ b/foo
+@@ -1 +1 @@
+-Fri Jun 9 00:44:04 PDT 2006
++Fri Jun 9 00:44:13 PDT 2006
+--
+1.4.0.g6f2b
+