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

Re: [PATCH] format-patch: Properly escape From_ lines when creating an mbox.

From
Carl Worth <cworth@cworth.org>
Date
Jun 9, 2010, 07:04 UTC
Message-ID
<87bpbkit5l.fsf@yoom.home.cworth.org>
In-Reply-To
<4C0F2B3C.4060203@zytor.com>
On Tue, 08 Jun 2010 22:48:44 -0700, "H. Peter Anvin" <hpa@zytor.com> wrote:
Show 5 quoted lines
> > Perhaps perfect is an enemy of good?
> 
> For production perhaps we should do the MIME-escape thing?
> 
> For consumption, it's not so clear...
I suggest as a first step accepting the following:
	format-patch: Emit bare email rather than mbox for single messages.
	<id:1276040615-26008-1-git-send-email-cworth@cworth.org>

That patch should be entirely uncontroversial since it doesn't introduce any new escaping, neither on the production nor on the consumption side.

It has the tremendous benefit of removing the mbox format entirely from the "git send-email" workflow, (which will just use bare messages instead).

With that patch in place, the only place that git will still generate mbox files is "format-patch --stdout". And the most common use of that is within git-rebase. For git-rebase, it doesn't matter what kind of mbox is used as long as it's consistent, since it's practically guaranteed that git-rebase will be using consistent versions of both "git format-patch" and "git am".

At that point, I think discussion of confusion from new format-patch and old am becomes almost meaningless as such interaction will most likely be happening through bare messages rather than mbox files. When an mbox file *is* involved I think it will be even more likely to happen through some external program, (such as an MUA collecting a thread of git-send-email messages and presenting them to "git am" as an mbox).

-Carl
-- 
carl.d.worth@intel.com
Previous: H. Peter Anvin
Message 11 of 11 in “format-patch: Properly escape From_ lines when creating an mbox.”
  1. format-patch: Properly escape From_ lines when creating an mbox.Carl Worth, Jun 9, 2010
  2. Junio C HamanoJun 9, 2010
  3. Carl WorthJun 9, 2010
  4. Carl WorthJun 9, 2010
  5. Junio C HamanoJun 10, 2010
  6. Carl WorthJun 10, 2010
  7. Carl WorthJun 10, 2010
  8. Junio C HamanoJun 10, 2010
  9. Carl WorthJun 10, 2010
  10. H. Peter AnvinJun 9, 2010
  11. Carl WorthJun 9, 2010

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.