Hey guys, what is your recommended setting for autocrlf in Git? I see conflicting advice all over the place and now I am suffering a bout of self doubt. Cheers, Charles
On Wed, May 27, 2009 at 9:06 AM, Charles Roper <reachme at charlesroper.co.uk> wrote:> Hey guys, what is your recommended setting for autocrlf in Git? I see > conflicting advice all over the place and now I am suffering a bout of > self doubt. >autocrlf is a old-school and silly way to deal with a text-editor limitation issue. git config --global core.autocrlf false And then clone a repository. The CRLF affects all the text files checked out in the working copy, and thus generate issues for even git status and git diff. I believe msysGit assumption to set it to true is foolish, but who am I to say anything? Read my comments and yours on this subject at my blog: http://blog.mmediasys.com/2009/01/05/to-git-or-not-to-git/ Cheers, -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry
2009/5/27 Luis Lavena <luislavena at gmail.com>:> git config --global core.autocrlf false > > And then clone a repository. The CRLF affects all the text files > checked out in the working copy, and thus generate issues for even git > status and git diff. > > I believe msysGit assumption to set it to true is foolish, but who am > I to say anything?Good, that is what I have it set to. Both my main text editors (E Text Editor and Vim) handle either CRLF or LF line-endings properly, thankfully. I was getting a bit perplexed by the setting apparently not ''sticking'' but I found that Vista was placing it in the VirtualStore. But anyway, thanks for the advice Luis - I had completely forgotten about your blog post, and my subsequent comment on it. :-) Charles