* git objects directory
@ 2005-10-31 15:33 Lexington Luthor
2005-10-31 16:08 ` Nikolai Weibull
2005-10-31 16:08 ` Johannes Schindelin
0 siblings, 2 replies; 3+ messages in thread
From: Lexington Luthor @ 2005-10-31 15:33 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git objects directory
2005-10-31 15:33 git objects directory Lexington Luthor
@ 2005-10-31 16:08 ` Nikolai Weibull
2005-10-31 16:08 ` Johannes Schindelin
1 sibling, 0 replies; 3+ messages in thread
From: Nikolai Weibull @ 2005-10-31 16:08 UTC (permalink / raw)
To: git
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);}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git objects directory
2005-10-31 15:33 git objects directory Lexington Luthor
2005-10-31 16:08 ` Nikolai Weibull
@ 2005-10-31 16:08 ` Johannes Schindelin
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Schindelin @ 2005-10-31 16:08 UTC (permalink / raw)
To: Lexington Luthor; +Cc: git
Hi,
On Mon, 31 Oct 2005, 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?
Some filesystems have problems with huge directories. And originally the
plan was to have all objects as files (now the older ones live in packs).
Hth,
Dscho
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-31 16:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-31 15:33 git objects directory Lexington Luthor
2005-10-31 16:08 ` Nikolai Weibull
2005-10-31 16:08 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).