git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-send-email.perl: Don't add header "In-Reply-To:" when --no-chain-reply-to set
@ 2009-05-16 17:15 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2009-05-16 17:15 UTC (permalink / raw)
  To: git

using
  git format-patch --thread=shallow -o <foo>
and
  git send-email --no-thread --no-chain-reply-to <foo>

duplicates the headers

  In-Reply-To:
  References: 

Signed-off-by: Joe Perches <joe@perches.com>

`diff --git a/git-send-email.perl b/git-send-email.perl
index cccbf45..b57bce4 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1137,7 +1137,7 @@ foreach my $t (@files) {
 	send_message();
 
 	# set up for the next message
-	if ($chain_reply_to || !defined $reply_to || length($reply_to) == 0) {
+	if ($chain_reply_to && (!defined $reply_to || length($reply_to) == 0)) {
 		$reply_to = $message_id;
 		if (length $references > 0) {
 			$references .= "\n $message_id";

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-16 17:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-16 17:15 [PATCH] git-send-email.perl: Don't add header "In-Reply-To:" when --no-chain-reply-to set Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).