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

Re: What's in a name? Let's use a (uuid,name,email) triplet

From
Michael Witten <mfwitten@gmail.com>
Date
Mar 19, 2010, 14:40 UTC
Message-ID
<b4087cc51003190740h680b5dech4edd7a5000f180ee@mail.gmail.com>
In-Reply-To
<m3tyscjt7h.fsf@localhost.localdomain>
On Fri, Mar 19, 2010 at 08:08, Jakub Narebski <jnareb@gmail.com> wrote:
Show 36 quoted lines
> Michael Witten <mfwitten@gmail.com> writes:
>
>> Short Version:
>> -------------
>>
>>
>> Rather than use a (name,email) pair to identify people, let's use
>> a (uuid,name,email) triplet.
>>
>> The uuid can be any piece of information that a user of git determines
>> to be reasonably unique across space and time and that is intended to
>> be used by that user virtually forever (at least within a project's
>> history).
>>
>> For instance, the uuid could be an OSF DCE 1.1 UUID or the SHA-1 of
>> some easily remembered, already reasonably unique information.
>
> ... or 'canonical-name canonical-email' pair.
>
>>
>> This could really help keep identifications clean, and it is rather
>> straightforward and possibly quite efficient.
>>
>>
>> Long Version:
>> ------------
> [...]
>
>> While git's use of (name,email) pairs to identify each person is
>> extremely practical, it turns out that it's rather `unstable';
>
> This is non-solution to non-problem.
>
> First, the user.name and user.email does not need to be name and email
> from some email account.  It might be some "canonical name" and
> "canonical email".

The vast majority of patches come in through email; the git tools expect the user.name and user.email to reflect physical email account information.

You would be correct if it were not for the fact that git currently conflates identity and current email system.

Show 9 quoted lines
> Second, there are (I think) two main sources of 'unstability' in
> (name,email) pairs, namely A) misconfigured git (when fetching/pushing
> using git itself), B) wrong name in email etc. (when sending patches
> via email, 80% of patches in Linux kernel case).
>
> In the case of misconfigured git (case A) using UUID wouldn't help,
> and only make it worse (you would have to configure the same UUID on
> each machine).  What would help here is for git to be more strict and
> perhaps forbid (some of) autogenerated names and emails.

The uuid string would be typed pretty much only during configuration; from there, it's basically just handled by the git tools. Hence, the uuid can indeed suffer from typos, but the name/email pair can suffer from not only typos but also real life name changing and email account switching.

There would still be the same problem of variations in uuid for one person, but the problem would very likely be greatly reduced; if a person doesn't use the uuid properly or at all, then we're in the exact same situation we were before. Those who do use it, though, will be much better off.

Strictness about names and emails is difficult, and keeping something like the current .mailmap file up-to-date is a centralized process. The uuid field would distribute the responsibility of maintaining identity and make that responsibility easy because the user-chosen string is easy for that user to remember and is typed only very occasionally and under very specific circumstances.

> In the case of sending patches via email, you can use in-body 'From:'
> to provide (name,email) part that is different than account used to
> send email.
That's a good solution that I've considered, except for 2 reasons:
    * It involves much more opportunities for typos and/or the
      configuration of a non-git tool for a git-specific purpose.
    * Many if not most email services will refuse to send messages
      with forged/spoofed email addresses.
> In the case of UUID you would need the same: some way to
> provide UUID in patch (in email).

Yes, but that's automated by tools like git's format-patch. Not using something like format-patch or some other git interface is an 'out-of-band' communication and that author has essentially chosen not to care about his identity.

The use of the uuid field and allowing git tools to handle it is just a way to give a person who does care about his identity to keep it consistent.

> UUID has the disadvantage of being
> required also when (name,email) in From: email header is good user ID.
> So UUID wouldn't help there either.
It's not a good user id because it depends on factors other than identity.
Show 5 quoted lines
> What could help in both cases is .mailmap being used (perhaps on
> demand) in more git commands.  See Documentation/mailmap.txt
> or e.g. git-shortlog(1) manpage.  It is quite advanced tool for
> correcting mistakes (it can correct *both* user name, which is
> most common usage, but also email address).

The disadvantage here is that it centralizes identity management and it is more demanding because the name/email pair is quite unstable.

On the other hand, something like a uuid field would distribute that management to the user himself and frees that user from the influences of legal name changing and email address switching.

Of course, as already stated, some people may bungle their uuid setting. Then something like .mailmap can be used, but the format would be simpler, the file would not grow nearly as quickly, and with some clever encoding some statistics gathering programs could (possibly) run more efficiently.

Previous: Michael J GruberNext: Erik Faye-Lund
Message 98 of 104 in “What's in a name? Let's use a (uuid,name,email) triplet”
  1. Michael WittenMar 18, 2010
  2. Jon SmirlMar 18, 2010
  3. Michael WittenMar 18, 2010
  4. Linus TorvaldsMar 18, 2010
  5. Michael WittenMar 18, 2010
  6. Matthieu MoyMar 18, 2010
  7. Michael WittenMar 18, 2010
  8. Nicolas PitreMar 18, 2010
  9. tytso@mit.eduMar 18, 2010
  10. Michael WittenMar 18, 2010
  11. Martin LanghoffMar 18, 2010
  12. Michael WittenMar 18, 2010
  13. Martin LanghoffMar 18, 2010
  14. Michael WittenMar 18, 2010
  15. Martin LanghoffMar 18, 2010
  16. Michael WittenMar 18, 2010
  17. Nicolas PitreMar 18, 2010
  18. Michael WittenMar 18, 2010
  19. Nicolas PitreMar 19, 2010
  20. Michael WittenMar 19, 2010
  21. Nicolas PitreMar 19, 2010
  22. Reece DunnMar 18, 2010
  23. Michael WittenMar 18, 2010
  24. Paolo BonziniMar 19, 2010
  25. Michael WittenMar 19, 2010
  26. Paolo BonziniMar 19, 2010
  27. Michael WittenMar 19, 2010
  28. Paolo BonziniMar 19, 2010
  29. Michael WittenMar 19, 2010
  30. Wincent ColaiutaMar 19, 2010
  31. Michael WittenMar 19, 2010
  32. Martin LanghoffMar 19, 2010
  33. Linus TorvaldsMar 18, 2010
  34. Michael WittenMar 18, 2010
  35. Jon SmirlMar 18, 2010
  36. Jon SmirlMar 18, 2010
  37. Linus TorvaldsMar 18, 2010
  38. Jon SmirlMar 18, 2010
  39. Linus TorvaldsMar 18, 2010
  40. Jon SmirlMar 18, 2010
  41. Linus TorvaldsMar 18, 2010
  42. Linus TorvaldsMar 18, 2010
  43. Linus TorvaldsMar 18, 2010
  44. Junio C HamanoMar 19, 2010
  45. Reece DunnMar 18, 2010
  46. Linus TorvaldsMar 18, 2010
  47. Michael WittenMar 18, 2010
  48. Linus TorvaldsMar 18, 2010
  49. Michael WittenMar 18, 2010
  50. Linus TorvaldsMar 18, 2010
  51. Michael WittenMar 18, 2010
  52. Wincent ColaiutaMar 18, 2010
  53. Wincent ColaiutaMar 18, 2010
  54. Martin LanghoffMar 18, 2010
  55. Martin LanghoffMar 18, 2010
  56. Nicolas PitreMar 18, 2010
  57. Jon SmirlMar 18, 2010
  58. Nicolas PitreMar 18, 2010
  59. Jon SmirlMar 18, 2010
  60. Nicolas PitreMar 18, 2010
  61. Jon SmirlMar 19, 2010
  62. Linus TorvaldsMar 19, 2010
  63. Jon SmirlMar 19, 2010
  64. Linus TorvaldsMar 19, 2010
  65. Jon SmirlMar 19, 2010
  66. Nicolas PitreMar 19, 2010
  67. Jon SmirlMar 19, 2010
  68. Michael WittenMar 18, 2010
  69. A Large Angry SCMMar 18, 2010
  70. Sitaram ChamartyMar 19, 2010
  71. Nazri RamliyMar 19, 2010
  72. Michael HaggertyMar 19, 2010
  73. Michael WittenMar 19, 2010
  74. david@lang.hmMar 19, 2010
  75. Mike HommeyMar 19, 2010
  76. Reece DunnMar 19, 2010
  77. Michael WittenMar 19, 2010
  78. Michael WittenMar 19, 2010
  79. Reece DunnMar 19, 2010
  80. Michael J GruberMar 19, 2010
  81. david@lang.hmMar 19, 2010
  82. Michael WittenMar 19, 2010
  83. Jon SmirlMar 19, 2010
  84. Reece DunnMar 19, 2010
  85. Michael WittenMar 19, 2010
  86. Mark BrownMar 22, 2010
  87. Michael WittenMar 22, 2010
  88. Erik Faye-LundMar 24, 2010
  89. Michael WittenMar 24, 2010
  90. Michael WittenMar 19, 2010
  91. Michael HaggertyMar 19, 2010
  92. david@lang.hmMar 19, 2010
  93. Michael WittenMar 19, 2010
  94. Avi KivityMar 24, 2010
  95. Jakub NarebskiMar 19, 2010
  96. Jon SmirlMar 19, 2010
  97. Michael J GruberMar 19, 2010
  98. Michael WittenMar 19, 2010
  99. Erik Faye-LundMar 19, 2010
  100. Michael WittenMar 19, 2010
  101. Michael WittenMar 19, 2010
  102. Erik Faye-LundMar 19, 2010
  103. Reece DunnMar 19, 2010
  104. Jakub NarebskiMar 20, 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.