From: Dmitry Potapov Date: Tue, 09 Mar 2010 07:24:12 GMT Subject: Re: core.autocrlf considered half-assed Message-ID: <20100309072412.GF31105@dpotapov.dyndns.org> In-Reply-To: On Mon, Mar 08, 2010 at 12:29:01PM +0100, Johannes Schindelin wrote: > > Easiest example: > > $ git clone -n git://repo.or.cz/git.git html-docs > $ cd html-docs/ > $ git config core.autocrlf true > $ git checkout -t origin/html > $ git status As Junio explained in another mail, it was intentional to have all HTML files with CRLF, because they are supposed to have that ending on all platforms. What is missing, however, is .gitattributes, which would tell to Git that we do not want to autocrlf conversion for HTML files. This can be done by adding .gitattributes: $ cat >> .gitattributes < .gitattributes <