{"thread":{"id":"19384","subject":"[PATCH] git-send-email.perl: Don't add header \"In-Reply-To:\" when --no-chain-reply-to set","startedAt":"2009-05-16T17:15:03Z","lastAt":"2009-05-16T17:15:03Z","messageCount":1,"participants":["Joe Perches"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"114103","messageId":"1242494103.4070.17.camel@Joe-Laptop.home","threadId":"19384","inReplyTo":null,"subject":"[PATCH] git-send-email.perl: Don't add header \"In-Reply-To:\" when --no-chain-reply-to set","fromName":"Joe Perches","fromEmail":"joe@perches.com","sentAt":"2009-05-16T17:15:03Z","receivedAt":"2009-05-16T17:15:03Z","isPatch":true,"sender":{"key":"joe@perches.com","avatar":"https://avatars.githubusercontent.com/u/13122723?v=4"},"body":"using\n  git format-patch --thread=shallow -o <foo>\nand\n  git send-email --no-thread --no-chain-reply-to <foo>\n\nduplicates the headers\n\n  In-Reply-To:\n  References: \n\nSigned-off-by: Joe Perches <joe@perches.com>\n\n`diff --git a/git-send-email.perl b/git-send-email.perl\nindex cccbf45..b57bce4 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -1137,7 +1137,7 @@ foreach my $t (@files) {\n \tsend_message();\n \n \t# set up for the next message\n-\tif ($chain_reply_to || !defined $reply_to || length($reply_to) == 0) {\n+\tif ($chain_reply_to && (!defined $reply_to || length($reply_to) == 0)) {\n \t\t$reply_to = $message_id;\n \t\tif (length $references > 0) {\n \t\t\t$references .= \"\\n $message_id\";\n"}]}