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

Re: git am mangles commit author name.

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jul 13, 2010, 22:16 UTC
Message-ID
<AANLkTin0UtjqOIpbEwu9YTCtt2A_QNiWExu-ov13DVfd@mail.gmail.com>
In-Reply-To
<AANLkTimCjfFh25vbzotufpTnUjfRglzHiQeDzWz8O5RJ@mail.gmail.com>
On Tue, Jul 13, 2010 at 15:48, Daniel F <nanotube@gmail.com> wrote:
> Ah yes, indeed... Well, is there any reason to even have that
> length sanity check in the first place? If someone wants to be
> identified with a nick of 1 or 2 chars, what's wrong with that?
I don't know. The whole thing seems a bit silly. I changed it:
    -   if (name->len < 3 || 60 < name->len || strchr(name->buf, '@')
||
                   +   if (name->len < 1 || 60 < name->len ||
strchr(name->buf, '@') ||

And nothing in the test suite broke. Removing the `name->len <' clause completely broke one test in t5100-mailinfo.sh however.

But I don't understand that part of Git, maybe it really will break horribly somewhere with:

    Author: av <a@v.net>
Previous: Daniel FNext: Tor Arntsen
Message 6 of 10 in “git am mangles commit author name.”
  1. Daniel FJul 13, 2010
  2. Jonathan NiederJul 13, 2010
  3. Daniel FJul 13, 2010
  4. Jay SoffianJul 13, 2010
  5. Daniel FJul 13, 2010
  6. Ævar Arnfjörð BjarmasonJul 13, 2010
  7. Tor ArntsenJul 14, 2010
  8. Ævar Arnfjörð BjarmasonJul 14, 2010
  9. Daniel FJul 16, 2010
  10. Jonathan NiederJul 16, 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.