git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] include/asm-arm/: Spelling fixes

From
Josh Triplett <josh@freedesktop.org>
Date
Jan 8, 2008, 11:16 UTC
Message-ID
<47835BAA.3090100@freedesktop.org>
In-Reply-To
<7vy7bt57wn.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 23 quoted lines
> Jeff King <peff@peff.net> writes:
>> Ah. The problem is that git-send-email unconditionally adds a
>> message-id. Usually git-format-patch doesn't add one, but for obvious
>> reasons, it must when doing --thread. Here is a fix.
> 
>> diff --git a/git-send-email.perl b/git-send-email.perl
>> index 1d6f466..083466a 100755
>> --- a/git-send-email.perl
>> +++ b/git-send-email.perl
>> @@ -580,7 +580,7 @@ sub send_message
>>  		$ccline = "\nCc: $cc";
>>  	}
>>  	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?
> 
> 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 added that option; see (d1566f7883f727f38bf442af3fdb69d36e6fcea2, cc35de8470541e389b7d2bdda4c901574720fa81, and da56645dd7c1175fc2ed1628ac35fdd35e705641). I use git-imap-send, not git-send-email, and I wanted to thread my patches.

- Josh Triplett
Previous: Josh Triplett
Message 9 of 9 in “Re: [PATCH] include/asm-arm/: Spelling fixes”
  1. J. Bruce FieldsDec 17, 2007
  2. Joe PerchesDec 17, 2007
  3. Jeff KingDec 17, 2007
  4. Junio C HamanoDec 17, 2007
  5. Jeff KingDec 17, 2007
  6. Jeff KingDec 17, 2007
  7. Junio C HamanoDec 17, 2007
  8. Josh TriplettJan 8, 2008
  9. Josh TriplettJan 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.