summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-11-24 15:55:32 -0800
committerJunio C Hamano <gitster@pobox.com>2010-11-24 15:55:32 -0800
commit01530432f73e7a29fbb9c4bc62aa88fba125ca7d (patch)
tree5257a796fae5be229a0979e6b1ba66a8456f7ddb /git-send-email.perl
parent20db370b63a47b19e5f903b78af46ec8e709fa37 (diff)
parentdb54c8e710397fbd58892daead6181b424d6d70a (diff)
downloadgit-01530432f73e7a29fbb9c4bc62aa88fba125ca7d.tar.gz
Merge branch 'ao/send-email-irt'
* ao/send-email-irt: git-send-email.perl: make initial In-Reply-To apply only to first email t9001: send-email interation with --in-reply-to and --chain-reply-to
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 6e2d79ac66..76565de2ee 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1319,7 +1319,8 @@ foreach my $t (@files) {
# set up for the next message
if ($thread && $message_was_sent &&
- (chain_reply_to() || !defined $reply_to || length($reply_to) == 0)) {
+ (chain_reply_to() || !defined $reply_to || length($reply_to) == 0 ||
+ $message_num == 1)) {
$reply_to = $message_id;
if (length $references > 0) {
$references .= "\n $message_id";