summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f0658cf)
raw | patch | inline | side by side (parent: f0658cf)
author | Don Zickus <dzickus@redhat.com> | |
Mon, 12 Mar 2007 19:52:07 +0000 (15:52 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 13 Mar 2007 06:33:41 +0000 (23:33 -0700) |
They handle cases where there is no attached patch.
Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t5100-mailinfo.sh | patch | blob | history | |
t/t5100/info0007 | [new file with mode: 0644] | patch | blob |
t/t5100/info0008 | [new file with mode: 0644] | patch | blob |
t/t5100/msg0007 | [new file with mode: 0644] | patch | blob |
t/t5100/msg0008 | [new file with mode: 0644] | patch | blob |
t/t5100/patch0007 | [new file with mode: 0644] | patch | blob |
t/t5100/patch0008 | [new file with mode: 0644] | patch | blob |
t/t5100/sample.mbox | patch | blob | history |
diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh
index 4d2b781a1877b2718b961a057b0dddea8f87c51b..ca96918da2008e9036624fac67c6337961e3c2b0 100755 (executable)
--- a/t/t5100-mailinfo.sh
+++ b/t/t5100-mailinfo.sh
'git-mailsplit -o. ../t5100/sample.mbox >last &&
last=`cat last` &&
echo total is $last &&
- test `cat last` = 6'
+ test `cat last` = 8'
for mail in `echo 00*`
do
diff --git a/t/t5100/info0007 b/t/t5100/info0007
--- /dev/null
+++ b/t/t5100/info0007
@@ -0,0 +1,5 @@
+Author: A U Thor
+Email: a.u.thor@example.com
+Subject: another patch
+Date: Fri, 9 Jun 2006 00:44:16 -0700
+
diff --git a/t/t5100/info0008 b/t/t5100/info0008
--- /dev/null
+++ b/t/t5100/info0008
@@ -0,0 +1,5 @@
+Author: Junio C Hamano
+Email: junio@kernel.org
+Subject: another patch
+Date: Fri, 9 Jun 2006 00:44:16 -0700
+
diff --git a/t/t5100/msg0007 b/t/t5100/msg0007
--- /dev/null
+++ b/t/t5100/msg0007
@@ -0,0 +1,2 @@
+Here is an empty patch from A U Thor.
+
diff --git a/t/t5100/msg0008 b/t/t5100/msg0008
--- /dev/null
+++ b/t/t5100/msg0008
@@ -0,0 +1,4 @@
+>Here is an empty patch from A U Thor.
+
+Hey you forgot the patch!
+
diff --git a/t/t5100/patch0007 b/t/t5100/patch0007
diff --git a/t/t5100/patch0008 b/t/t5100/patch0008
diff --git a/t/t5100/sample.mbox b/t/t5100/sample.mbox
index 86bfc27147f7df8458f32fee5a9aa199a0c76b3a..b80c981c165e9c82f56f826a0542f3bef3f13eb3 100644 (file)
--- a/t/t5100/sample.mbox
+++ b/t/t5100/sample.mbox
--
1.4.0.g6f2b
+From nobody Mon Sep 17 00:00:00 2001
+From: A U Thor <a.u.thor@example.com>
+Date: Fri, 9 Jun 2006 00:44:16 -0700
+Subject: [PATCH] another patch
+
+Here is an empty patch from A U Thor.
+
+From nobody Mon Sep 17 00:00:00 2001
+From: Junio C Hamano <junio@kernel.org>
+Date: Fri, 9 Jun 2006 00:44:16 -0700
+Subject: re: [PATCH] another patch
+
+From: A U Thor <a.u.thor@example.com>
+Subject: [PATCH] another patch
+>Here is an empty patch from A U Thor.
+
+Hey you forgot the patch!
+