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

Re: git objects directory

From
NWNikolai Weibull <mailing-lists.git@rawuncut.elitemail.org>
Date
Oct 31, 2005, 16:08 UTC
Message-ID
<20051031160803.GB15802@puritan.petwork>
In-Reply-To
<dk5dgq$isv$1@sea.gmane.org>
Lexington Luthor wrote:
> 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.

Because otherwise there would be a lot of objects (files) in the objects subdirectory, which would cause a lot of problems with many filesystems.

Anyway, you best leave that directory be, but I understand your desire to understand :-).

        nikolai
-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Previous: Lexington LuthorNext: Johannes Schindelin
Message 2 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.