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

Re: [PATCH] fix git format-patch --cc=<email> format

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 1, 2009, 02:24 UTC
Message-ID
<7vk57aasjx.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20090301010116.GA20255@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 22 quoted lines
> On Sat, Feb 28, 2009 at 09:29:58AM -0800, Junio C Hamano wrote:
>
>> >> If there are multiple --cc=<email> arguments, git format-patch will generate
>> >> patches with cc lines like:
>> >>  Cc: <email>,
>> >>      <email>
>> >> which git send-email fails to parse.
>> >> git send-email only accept formats like:
>> >>  Cc: <email>
>> >>  Cc: <email>
>> >> So change git format-patch to generate patches in a proper format.
>> >
>> > This is fixed in next, but we fixed send-email instead to handle the
>> > messages that format-patch generates, as they should be valid.
>> 
>> Per RFC2822 3.6 (pp 19-20), "cc" is to appear at most once (same is true
>> for "to" and "bcc").  I think fix to format-patch is necessary regardless
>> of what send-email does.
>
> Then isn't the current format-patch output (folding the cc over
> multiple lines) correct, and the patch (outputting multiple cc headers)
> wrong?

Ahh, sorry I misread what the commit message was saying and the patch was doing.

Previous: Jeff King
Message 5 of 5 in “fix git format-patch --cc=<email> format”
  1. fix git format-patch --cc=<email> formatPeng Tao, Feb 28, 2009
  2. Jay SoffianFeb 28, 2009
  3. Junio C HamanoFeb 28, 2009
  4. Jeff KingMar 1, 2009
  5. Junio C HamanoMar 1, 2009

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.