From: Avery Pennarun Date: Wed, 23 Jul 2008 18:33:54 GMT Subject: Re: [PATCH] Respect crlf attribute even if core.autocrlf has not been set Message-ID: <32541b130807231133x37083278u1badd82b5c48e57b@mail.gmail.com> In-Reply-To: <488772BC.80207@workspacewhiz.com> On 7/23/08, Joshua Jensen wrote: > There are certain file formats, such as a Visual Studio .sln file, that > MUST be CRLF. [...] It seems like what people really want is some additional file attributes: 1. always CRLF on all platforms (eg. for .bat files) 2. always LF on all platforms (eg. for shell scripts and perl scripts) 3. just leave it alone no matter what (eg. for binary files) 4. convert line endings to LF on checkin, native on checkout (eg. for most source files) Where "native" is defined by some config option, but the choice of #1 through #4 is defined by .gitattributes. Thus, the config option affects only mode #4 (and perhaps the default mode, as it does now). The current system works for #3. With Dscho's patch, #4 works too. I think more kinds of per-file attributes are needed in order to get #1 and #2. Avery