From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Joe Perches <joe@perches.com>,
"J. Bruce Fields" <bfields@fieldses.org>,
git <git@vger.kernel.org>
Subject: Re: [PATCH] include/asm-arm/: Spelling fixes
Date: Mon, 17 Dec 2007 18:05:58 -0500 [thread overview]
Message-ID: <20071217230558.GD2105@coredump.intra.peff.net> (raw)
In-Reply-To: <7vy7bt57wn.fsf@gitster.siamese.dyndns.org>
On Mon, Dec 17, 2007 at 01:27:20PM -0800, Junio C Hamano wrote:
> > my $sanitized_sender = sanitize_address($sender);
> > - make_message_id();
> > + make_message_id() unless defined($message_id);
>
> Isn't this called inside a loop? If the outgoing message does not
> originally have "Message-Id:", does the loop correctly reinitialize
> $message_id to undef, or does this change make everybody reuse the same
> $message_id over and over again?
Yes, sorry. I realized it right after I sent the other out, but then a
repairman showed up to fix my non-working furnace. :)
The following needs to be squashed in (alternatively, the message_id
doesn't need to be a loop variable, so it could be cleaned up. But part
of me says that git-send-email is beyond hope for being clean).
diff --git a/git-send-email.perl b/git-send-email.perl
index 083466a..248d035 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -808,6 +808,7 @@ foreach my $t (@files) {
$references = "$message_id";
}
}
+ $message_id = undef;
}
if ($compose) {
> I have a feeling that --thread to format-patch is a misfeature. Why is
> it needed if you are feeding the output to send-email?
I think it is a case of --thread being added for people not using
send-email, and then getting it misused. I am just trying to add a
sanity check to send-email in case the user does something silly (though
one could certainly argue that it is already hopelessly tied to
git-format-patch, and fixing git-format-patch is the right way to go).
> I wonder if stripping existing "Message-Id:" away just like we strip
> away "Date:" from @xh would be a much saner fix.
That is definitely wrong if we expect to re-use the in-reply-to and
references headers that already exist (though obviously we could strip
out all three of those headers and re-add our own).
I don't have a strong opinion. I never use git-send-email myself, but
was just trying to fix a reported bug.
-Peff
next prev parent reply other threads:[~2007-12-17 23:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5703e57f925f31fc0eb38873bd7f10fc44f99cb4.1197918889.git.joe@perches.com>
[not found] ` <20071217195658.GB13515@fieldses.org>
[not found] ` <1197921847.27386.16.camel@localhost>
2007-12-17 20:12 ` [PATCH] include/asm-arm/: Spelling fixes J. Bruce Fields
2007-12-17 20:22 ` Joe Perches
2007-12-17 20:51 ` Jeff King
2007-12-17 21:27 ` Junio C Hamano
2007-12-17 23:05 ` Jeff King [this message]
2007-12-17 23:12 ` Jeff King
2007-12-17 23:28 ` Junio C Hamano
2008-01-08 11:15 ` Josh Triplett
2008-01-08 11:16 ` Josh Triplett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071217230558.GD2105@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=bfields@fieldses.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=joe@perches.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).