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

Re: What's cooking in git.git (Jan 2021, #02; Fri, 8)

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 15, 2021, 07:22 UTC
Message-ID
<xmqqft32u0jp.fsf@gitster.c.googlers.com>
In-Reply-To
<YADaJ1gfbxQaLGXf@google.com>
Emily Shaffer <emilyshaffer@google.com> writes:
> Taking the time to redesign commit format (e.g. use user.id instead of
> user.name/user.email) ...

I have seen that "ID", which doesn't have permanent association to <name, email>, has been raised as a solution from time to time, but I am not quite sure what problem is being solved. At some point, you'd need to translate the "ID" to a way humans use to refer to each other---you cannot forever be saying "Ah, commits by this contributor #70763 is consistently good and seems to know the history traversal quite well. We wish who it is so that we can ask to review what we have been working on."

So we must have a mapping from ID to <name, email> or something. How is that mapping maintained? Even though Git is a version tracking system and the mapping will change over time, we'll only keep the "latest"? That may not work very well, as a work for hire contract a company made with one of the project participants would have been made with a real person with a name, not just an anonymous contributor #70763---the work done under the contract would not become invalid merely because mapping from ID to <name, email> changes, and those who made contract with a person with a certain name would want to make sure the contributor #70763 who made the work is actually who they thought they had contract with.

If we do not keep track of the change of the mapping ourselves, the ecosystem around us will start doing so to fill the gap, so I do not think use of "ID" would help you dissociate from your past self, while keeping the credit for your past commits.

And if the mapping is version controlled in such a way that an "ID" can be used to look up its name at any given time in the past, it would not be so different from what we already have.

One advantage I could imagine that "ID" based system may have is that one who wants to completely dissociate from an older name and/or email can just start using a totally different "ID" with totally different name, and pretend that s/he has no relationship with the old person associated with the old "ID", and nobody would be able to tell. But again, I suspect that it can also be done without "ID". So...

> ... also gives us room to improve other things we
> don't like about the commit format (e.g. limited to single author).

I personally think having "author" is a mistake, iff some people do not like "limited to a single author". You can write everybody's name in the trailer as "Co-Authored-by:" and at that point you do not need any author in the commit object header.

But that is so miniscule a feature that I do not think it is worth making a backward incompatible change to change the number of the commit object header for the author from 1 to either 0 or many.

Anyway, thanks for an opportunity for a (somewhat) fun thought experiment.

Goodnight.
Previous: Emily ShafferNext: brian m. carlson
Message 11 of 34 in “What's cooking in git.git (Jan 2021, #02; Fri, 8)”
  1. Junio C HamanoJan 8, 2021
  2. Ævar Arnfjörð BjarmasonJan 9, 2021
  3. Junio C HamanoJan 9, 2021
  4. brian m. carlsonJan 9, 2021
  5. Junio C HamanoJan 9, 2021
  6. brian m. carlsonJan 11, 2021
  7. Junio C HamanoJan 11, 2021
  8. Ævar Arnfjörð BjarmasonJan 12, 2021
  9. Emily ShafferJan 14, 2021
  10. Emily ShafferJan 14, 2021
  11. Junio C HamanoJan 15, 2021
  12. brian m. carlsonJan 15, 2021
  13. Junio C HamanoJan 15, 2021
  14. Ævar Arnfjörð BjarmasonJan 16, 2021
  15. Jeff KingJan 17, 2021
  16. Ævar Arnfjörð BjarmasonJan 17, 2021
  17. Ævar Arnfjörð BjarmasonJan 10, 2021
  18. Junio C HamanoJan 11, 2021
  19. David AguilarJan 9, 2021
  20. Junio C HamanoJan 9, 2021
  21. Emily ShafferJan 14, 2021
  22. Junio C HamanoJan 15, 2021
  23. Taylor BlauJan 15, 2021
  24. Taylor BlauJan 15, 2021
  25. Derrick StoleeJan 15, 2021
  26. Derrick StoleeJan 15, 2021
  27. Junio C HamanoJan 15, 2021
  28. Junio C HamanoJan 15, 2021
  29. Derrick StoleeJan 15, 2021
  30. Junio C HamanoJan 15, 2021
  31. Emily ShafferJan 15, 2021
  32. Junio C HamanoJan 15, 2021
  33. Jeff KingJan 15, 2021
  34. Junio C HamanoJan 15, 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.