From: Avery Pennarun Date: Fri, 07 May 2010 19:11:21 GMT Subject: Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization Message-ID: In-Reply-To: On Fri, May 7, 2010 at 3:02 PM, Linus Torvalds wrote: > Btw, another option might be to start searching ".gitconfig", but only > allow a certain "safe subset" of config options in that. Things that can > really be about the project itself, and not per-user or per-repository. > [...] > Things like > >        core.autocrlf >        i18n.commitEnconfig Unfortunately this option wouldn't be as flexible as Eyvind's current proposal. What his method allows is to mark some files in a project as "these should be the native EOL style" and others as "these should be left alone." Then each person can set a (usually global) config option that states what the native EOL style should be. Like core.autocrlf, only it wouldn't affect projects without crlf attributes (like git.git or linux.git) where CRLF translation is pretty much always wrong. (And if one person disagrees that it's always wrong, well, he can always set core.autocrlf for himeself.) Have fun, Avery