From: Erik Faye-Lund Date: Fri, 07 May 2010 08:45:36 GMT Subject: Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization Message-ID: In-Reply-To: On Fri, May 7, 2010 at 12:27 AM, Eyvind Bernhardsen wrote: > This discussion couldn't be more timely, as I've recently acquired a > desperate need to solve CRLF problems at $dayjob.  This patch series > introduces a new way of turning on autocrlf normalization by splitting > the configuration into two: > > - An attribute called "auto-eol" is set in the repository to turn on >  normalization of line endings.  Since attributes are content, the >  setting is copied when the repository is cloned and can be changed in >  an existing repository (with a few caveats).  Setting this attribute >  is equivalent to setting "core.autocrlf" to "input" or "true". > > - A configuration variable called "core.eolStyle" determines which type >  of line endings are used when checking files out to the working >  directory. > Beautiful! This approach addresses most (all?) issues I've had with core.autocrlf in a very elegant way IMO! :) -- Erik "kusma" Faye-Lund