From: Eric Wong Date: Mon, 23 Oct 2006 07:46:37 +0000 (-0700) Subject: git-send-email: do not pass custom Date: header X-Git-Tag: v1.4.4-rc1~73 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1d6a003a42b3c23ad7883b0bbe6a034728e51836;p=git.git git-send-email: do not pass custom Date: header We already generate a Date: header based on when the patch was emailed. git-format-patch includes the Date: header of the patch. Having two Date: headers is just confusing, so we just use the current Date: Often the mailed patches in a patch series are created over a series of several hours or days, so the Date: header from the original commit is incorrect for email, and often far off enough for spam filters to complain. Signed-off-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 1c6d2cc78..c42dc3bc9 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -514,7 +514,7 @@ foreach my $t (@files) { $2, $_) unless $quiet; push @cc, $2; } - elsif (/^[-A-Za-z]+:\s+\S/) { + elsif (!/^Date:\s/ && /^[-A-Za-z]+:\s+\S/) { push @xh, $_; }