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

Re: Git Rebase blows away GIT_AUTHOR_NAME

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Jan 14, 2011, 16:13 UTC
Message-ID
<AANLkTimZF+r2aNzrXsUuHVZR65N5wpOYLutFgGAGoci_@mail.gmail.com>
In-Reply-To
<AANLkTi=Z6Dx6m68zi7Q1eRVxX3DXOyKj+Ff177UCQrAj@mail.gmail.com>

On Fri, Jan 14, 2011 at 4:41 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:

Show 10 quoted lines
> On Fri, Jan 14, 2011 at 1:53 AM, Erik Faye-Lund <kusmabite@gmail.com> wrote:
>>
>> Linus, you wrote sanity_check (from 2744b23). Do you remember if there
>> were any specific reason for the minimum length of 3 of an
>> author-name? It seems that in Sweden, legal names can be even a single
>> letter (see Tor's comment)...
>
> Even if the legal name would be a single letter, you'd still need to
> have a surname.
>

I think Tor pointed out that he knew a swede with his full legal name to be only one letter long. I would suppose that meant that he didn't have a surename?

> The three-letter minimum is just a sanity check. If your name really
> is even just three letters, I suspect you're just lying. I don't know
> of anybody named "A B".
>

Thanks for clarifying that it's not there for a technical reason. The thing is, git-am seems to be the only place where such a sanity-check is performed. Shouldn't git-commit rather perform such checks also (if such a check should be done at all), perhaps with an override similar to --allow-empty? And on top of all it doesn't barf, it just silently replace the name with the e-mail...

Show 17 quoted lines
> That thing is supposed to be a *NAME*. Not shorthand. Not your first
> name. Not your nickname. If you have a nickname, put it in quotes
> inside the real name.
>
> I've seen too many broken source control systems that just take your
> login as a name *cough*CVS*cough*, and then people think it's
> "convenient" and "cool" to have a short name.
>
> It's not convenient. It's not cool. It's just shorthand where
> shorthand doesn't help. Then you end up using it in a public setting,
> and suddenly your cool shorthand or nickname isn't even remotely
> unique.
>
> No, there is no uniquness "requirements" for the name, but come on.
> Look at shortlog output some day. We try to use just the name because
> it looks better. But if people don't use their full name, it just
> looks _stupid_

I agree with you that using nicknames etc as author-name is a bit silly, but I'm not sure if I want my version control system to tell me that it thinks my author-name looks stupid :)

IMO, we should probably just remove the check altogether.

There's also an upper-bound of 60 characters. I'm wondering if this could be hit by valid names, especially with non-western UTF-8 characters. Perhaps this should be removed also. The check for '@', '<' and '>' is probably still OK.

Previous: Linus TorvaldsNext: Jeff King
Message 14 of 30 in “Git Rebase blows away GIT_AUTHOR_NAME”
  1. JT OldsJan 12, 2011
  2. Jeff KingJan 12, 2011
  3. JT OldsJan 13, 2011
  4. JT OldsJan 13, 2011
  5. Erik Faye-LundJan 13, 2011
  6. JT OldsJan 13, 2011
  7. Erik Faye-LundJan 13, 2011
  8. Tor ArntsenJan 14, 2011
  9. Erik Faye-LundJan 14, 2011
  10. Tor ArntsenJan 14, 2011
  11. Erik Faye-LundJan 14, 2011
  12. JT OldsJan 14, 2011
  13. Linus TorvaldsJan 14, 2011
  14. Erik Faye-LundJan 14, 2011
  15. Jeff KingJan 14, 2011
  16. Erik Faye-LundJan 14, 2011
  17. Jeff KingJan 14, 2011
  18. Jay SoffianJan 14, 2011
  19. Junio C HamanoJan 14, 2011
  20. Jeff KingJan 14, 2011
  21. Junio C HamanoJan 14, 2011
  22. Jeff KingJan 17, 2011
  23. Erik Faye-LundJan 17, 2011
  24. JT OldsJan 18, 2011
  25. Jay SoffianJan 19, 2011
  26. Tor ArntsenJan 14, 2011
  27. Erik Faye-LundJan 14, 2011
  28. Linus TorvaldsJan 14, 2011
  29. Erik Faye-LundJan 14, 2011
  30. Jeff KingJan 13, 2011

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.