Why does git store objects in directories with the first two characters of the hash?
I'm designing a directory structure based on UUIDs so I'm looking at what git does to see if it would be a good model. I can see that git stores objects in a structure where the first two characters of the hash are used as a directory and the rest of the hash is the file name. What I'm wondering is why? If there's a big advantage to using the directories why aren't more subdirectories created... say a directory for each one or two characters in the hash creating a tree? If there isn't a big advantage then why the directory with the first two chars? Git switches from "loose objects" (in files