Skip to content

Commit

Permalink
send-email: respect in-reply-to regardless of threading
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Rast authored and Junio C Hamano committed Mar 3, 2009
1 parent 718258e commit 3e0c4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ sub send_message
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";
Expand Down

0 comments on commit 3e0c4ff

Please sign in to comment.