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

Re: Including object type and size in object id (Re: Git Merge contributor summit notes)

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 26, 2018, 22:40 UTC
Message-ID
<xmqq7epybgvh.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180326210039.GB21735@aiede.svl.corp.google.com>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 6 quoted lines
> This implies a limit on the object size (e.g. 5 bytes in your
> example).  What happens when someone wants to encode an object larger
> than that limit?
>
> This also decreases the number of bits available for the hash, but
> that shouldn't be a big issue.

I actually thought that the latter "downside" makes the object name a tad larger.

But let's not go there, really.

"X is handy if we can get it on the surface without looking into it" will grow. Somebody may want to have the generation number of a commit in the commit object name. Yet another somebody may want to be able to quickly learn the object name for the top-level tree from the commit object name alone. We need to stop somewhere, and as already suggested in the thread(s), having auxiliary look-up table is a better way to go, encoding nothing in the name, as we are going to need such a look-up table because it is unrealistic to encode everything we would want in the name anyway.

Previous: Jeff HostetlerNext: Jonathan Nieder
Message 15 of 17 in “Git Merge contributor summit notes”
  1. Alex VandiverMar 10, 2018
  2. Ævar Arnfjörð BjarmasonMar 10, 2018
  3. Junio C HamanoMar 11, 2018
  4. Jeff KingMar 12, 2018
  5. Brandon WilliamsMar 13, 2018
  6. Jeff KingMar 12, 2018
  7. Ævar Arnfjörð BjarmasonMar 25, 2018
  8. Jeff HostetlerMar 26, 2018
  9. Stefan BellerMar 26, 2018
  10. Jeff HostetlerMar 26, 2018
  11. Brandon WilliamsMar 26, 2018
  12. Jakub NarebskiApr 7, 2018
  13. Including object type and size in object id (Re: Git Merge contributor summit notes)Jonathan Nieder, Mar 26, 2018
  14. Jeff HostetlerMar 26, 2018
  15. Junio C HamanoMar 26, 2018
  16. Per-object encryption (Re: Git Merge contributor summit notes)Jonathan Nieder, Mar 26, 2018
  17. Ævar Arnfjörð BjarmasonMar 26, 2018

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.