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

git objects directory

From
LLLexington Luthor <lexington.luthor@gmail.com>
Date
Oct 31, 2005, 15:33 UTC
Message-ID
<dk5dgq$isv$1@sea.gmane.org>
Hi,

Can someone please explain why git puts its objects in 256 sub-directories of objects instead of directly in the objects directory itself? I am trying to learn git (actually cogito), but I still don't understand why this structure is used.

What is the point of having the first byte of the hash as the directory name?

-- LL
Next: Nikolai Weibull
Message 1 of 3 in “git objects directory”
  1. Lexington LuthorOct 31, 2005
  2. Nikolai WeibullOct 31, 2005
  3. Johannes SchindelinOct 31, 2005

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.