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

Re: [PATCH v2 2/3] mailsplit: support unescaping mboxrd messages

From
EWEric Wong <e@80x24.org>
Date
Jun 6, 2016, 23:02 UTC
Message-ID
<20160606230248.GA15906@dcvr.yhbt.net>
In-Reply-To
<xmqq7fe2xjii.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> wrote:
> This just makes me wonder if there is a practical reason why people
> would not want this always enabled.  I just looked at output from
> 
>     $ git log --grep='>>*From '
Missing '^' ?

Auto-unescaping in mailsplit might throw off people on older versions of git if reserialized as mail, though. Maybe in a few years, we can consider it.

Auto-escaping on the other hand, I think we start doing in --pretty=email by default soon/today. At least for lines matching the stricter is_from_line() check from mailsplit.

Show 7 quoted lines
> in the kernel repository, and I saw no cases where the committer
> really wanted to preserve the leading one or more '>' on that line.
> No, I didn't go through all of 150+ such commits, but I did check
> the couple dozen of them from the recent history.
> 
> Our history also have 5 instances of them, none of which should have
> had the leading '>' if the committer were careful.

Right, but I'm actually more worried about unescaped /^From / breaking further attempts to split.

	git log --grep='^From .*:.*:.* .*'

...finds 45 commits in Linux 4.6.1 which might cause incorrect splits. We have 5 of those ourselves.

Technically it is backwards-incompatible, but I would rather leave an extra '>' in the commit than break a split.

> > +>From the beginning, mbox should have been mboxrd
> 
> Indeed ;-)
Yes, I'm really wishing we did this 11 years ago :)
Previous: Junio C HamanoNext: Eric Wong
Message 5 of 6 in “support mboxrd format”
  1. 0/3 support mboxrd formatEric Wong, Jun 5, 2016
  2. 1/3 pretty: support "mboxrd" output formatEric Wong, Jun 5, 2016
  3. 2/3 mailsplit: support unescaping mboxrd messagesEric Wong, Jun 5, 2016
  4. Junio C HamanoJun 6, 2016
  5. Eric WongJun 6, 2016
  6. 3/3 am: support --patch-format=mboxrdEric Wong, Jun 5, 2016

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.