Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization
- From
Erik Faye-Lund <kusmabite@googlemail.com>
- Date
- May 7, 2010, 08:45 UTC
- Message-ID
- <s2v40aa078e1005070145p8e294a80l6013f3011a6199f0@mail.gmail.com>
- In-Reply-To
- <cover.1273183206.git.eyvind.bernhardsen@gmail.com>
On Fri, May 7, 2010 at 12:27 AM, Eyvind Bernhardsen <eyvind.bernhardsen@gmail.com> wrote:
Show 15 quoted lines
> 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