Re: tracking perms/ownership
- From
- Josh England <jjengla@sandia.gov>
- Date
- Aug 24, 2007, 08:19 UTC
- Message-ID
- <1187943598.6357.99.camel@beauty>
- In-Reply-To
- <7vd4xds7oj.fsf@gitster.siamese.dyndns.org>
On Fri, 2007-08-24 at 00:39 -0700, Junio C Hamano wrote:
Show 14 quoted lines
> "Josh England" <jjengla@sandia.gov> writes: > > > That's ok. Any place to store the data is fine by me. I'm just > > concerned about some comments I saw in attrs.c <line13>: > > /* > > The basic design decision here is that we are not going to have insanely > > large number of attributes. > > This is a randomly chosen prime. > > */ > > #define HASHSIZE 257 > > That talks about the size of the vocabulary of attribute names, > such as "diff", "crlf", "merge". IIRC, you need two more > (owner, perm) or maybe three (group), not 150k.
OK that's comforting. The 150k above though is not # of attribute *types* (perms/uid/gid or whatever), it is number of attribute *entries* in a .gitattributes file (eg: /etc/sudoers mode=0440 uid=0 gid=0). Hopefully it shouldn't actually be as high as 150k, i don't know.
-JE