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

Re: [PATCH] mailinfo: don't discard names under 3 characters

From
Jeff King <peff@peff.net>
Date
Jan 30, 2020, 10:06 UTC
Message-ID
<20200130100654.GA840101@coredump.intra.peff.net>
In-Reply-To
<20191220003948.60272-1-edef@edef.eu>
On Fri, Dec 20, 2019 at 12:39:48AM +0000, edef wrote:
Show 10 quoted lines
> I sometimes receive patches from people with short mononyms, and in my
> cultural environment these are not uncommon. To my dismay, git-am
> currently discards their names, and replaces them with their email
> addresses.
> 
> Link: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
> ---
> I'm not *completely* sure there's even a case where `src = email` is 
> the right thing to do, but I'd rather not modify this code more than 
> strictly necessary.

I think this makes sense. There's a lot of heuristic voodoo in this old mailinfo code, but I think getting people's legitimate short names wrong is worse than the likelihood that this is actually helping some broken-parsing case in any meaningful way. I suspect this code predates us parsing the headers carefully according to the standard (it looks to be from 2744b2344d on 2005-04-11, which is quite early!).

The 60-char maximum also seems like something people might run afoul of in certain cultures. Is it worth bumping, too?

I think your patch slipped through the cracks, coming as it did over the holidays. It's probably worth re-posting it (with your signed-off-by).

-Peff
Previous: edefNext: edef
Message 3 of 5 in “mailinfo: don't discard names under 3 characters”
  1. mailinfo: don't discard names under 3 charactersedef, Dec 20, 2019
  2. edefDec 20, 2019
  3. Jeff KingJan 30, 2020
  4. mailinfo: don't discard names under 3 charactersedef, May 16, 2021
  5. Junio C HamanoMay 16, 2021

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.