when running git format-patch, the intent is to create an email representation of the code you wrote. So far so good. I'm no email expert, but it seems to me that the first line of this format-patch output isn't in a standard email header format...
From de8d128fb520416e0b029c913b3a5ce900d0320c Mon Sep 17 00:00:00 2001 Message-Id: From: Christopher Harvey Date: Wed, 3 Apr 2013 10:17:52 -0400 Subject: [PATCH 0/3] *** SUBJECT HERE *** To: Christopher Harvey *** BLURB HERE *** Christopher Harvey (3): commit 2 commit 3 commit 4 data | 3 +++ 1 file changed, 3 insertions(+) -- 1.7.12.4
what is From de8d128fb520416e0b029c913b3a5ce900d0320c Mon Sep 17 00:00:00 2001
? what is the date for? It looks arbitrary to me, and it also prevents me from piping it to sendmail. I have to manually remove that line each time I want to send a patch.
thanks.
From git help format-patch
DISCUSSION The patch produced by git format-patch is in UNIX mailbox format, with a fixed "magic" time stamp to indicate that the file is output from format-patch rather than a real mailbox, like so:
From 8f72bad1baf19a53459661343e21d6491c3908d3 Mon Sep 17 00:00:00 2001 From: Tony Luck <tony.luck@intel.com> Date: Tue, 13 Jul 2010 11:42:54 -0700 Subject: [PATCH] =?UTF-8?q?> > [IA64]=20Put=20ia64=20config=20files=20on=20the=20?= =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20diet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit