Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization
- From
Avery Pennarun <apenwarr@gmail.com>
- Date
- May 7, 2010, 20:06 UTC
- Message-ID
- <t2g32541b131005071306v580560c4gb524e9456604298d@mail.gmail.com>
- In-Reply-To
- <20100507194140.GC7963@pvv.org>
On Fri, May 7, 2010 at 3:41 PM, Finn Arne Gangstad <finnag@pvv.org> wrote:
Show 9 quoted lines
> Maybe it is sufficient to add a new value to "crlf" that means: > > - If the file is autodetected as text: > - Convert to LF only on commit, and > - Convert to your preferred EOL style on checkout. > > I don't think autocrlf is a good place to specify preferred EOL > style, it is too dangerous to set autocrlf to true by default, but it should > not be dangerous to say that your preferred EOL style is CRLF.
Assuming it's updated to reuse the existing crlf attribute instead of adding a new one, that seems to be exactly what this patch series is about. "Your preferred EOL style" is the newly introduced core.eolStyle config option. So... good idea :)
Have fun,
Avery