Code

send-email: respect in-reply-to regardless of threading
authorThomas Rast <trast@student.ethz.ch>
Sun, 1 Mar 2009 22:45:41 +0000 (23:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Mar 2009 07:15:47 +0000 (23:15 -0800)
git-send-email supports the --in-reply-to option even with
--no-thread.  However, the code that adds the relevant mail headers
was guarded by a test for --thread.

Remove the test, so that the user's choice is respected.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl

index 449d938ba97cf1db47049a2f514bea1ed220044b..734dc9f4f91dd0d1f1c0dfccc9e746b35562f350 100755 (executable)
@@ -727,7 +727,7 @@ Date: $date
 Message-Id: $message_id
 X-Mailer: git-send-email $gitversion
 ";
-       if ($thread && $reply_to) {
+       if ($reply_to) {
 
                $header .= "In-Reply-To: $reply_to\n";
                $header .= "References: $references\n";