Re: [PATCH/RFC] Add global and system-wide gitattributes
- From
Petr Onderka <gsvick@gmail.com>
- Date
- Aug 11, 2010, 10:50 UTC
- Message-ID
- <AANLkTi=q-tdtaWp8O3AHyvynL97LJuy7e9HUFwfkmX3O@mail.gmail.com>
- In-Reply-To
- <Pine.GSO.4.63.1008111059281.1471@shipon.roxen.com>
Hi,
>> Allow gitattributes to be set globally and system wide in ~/.giattributes > > ^^ > I assume you mean "~/.gitattributes" (ie missing a 't').
Yeah.
> I'm not sure if the above priority order is the most desireable order, since > the user may want to set a default attribute, and have it to be overridden > by the .gitattributes in the repositories.
I wasn't sure either. I'm assuming info/gitattributes was made with higher priority, so that that users could override .gitattributes without polluting their repository, so I made the new ones behave the same way. But now that I think of it, you probably want to do that only for a specific repository, and have defaults for all repositories that could be overriden by local .gitattributes. I'm going to rewrite it this way.
Petr Onderka