[PATCH] git-send-email.perl: Don't add header "In-Reply-To:" when --no-chain-reply-to set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>

`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";


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]