Re: [PATCH/RFC v2 1/4] Add "core.eolStyle" variable to control end-of-line conversion

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Buck
Date: Monday, May 10, 2010 - 4:43 am

On Mon, May 10, 2010 at 12:33 AM, Eyvind Bernhardsen
<eyvind.bernhardsen@gmail.com> wrote:

Okay, so that makes sense...

   "Files subject to EOL conversion are those that are explicitly
 identified through attributes to be text files, or provided core.crlf is
set to auto, those files algorithmically determined to be text files
which happen to not bear
 the "text" file attribute. Otherwise the default value, "false",
applies and no EOL conversions occur. When conversions occur the EOL
character changes from the internal LF format to the format specified
by core.crlftype."

This would work out well if file type maps were ever introduced. Type
maps would not short circuit the explicit attributes identified by the
first clause, then for those files without attributes you'd check the
file-type maps, then fall back to the algorithmic if auto is enabled.

I like that.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH/RFC v2 0/4] End-of-line normalization, take 2 (now ..., Eyvind Bernhardsen, (Sat May 8, 2:46 pm)
[PATCH/RFC v2 2/4] Add tests for per-repository eol normal ..., Eyvind Bernhardsen, (Sat May 8, 2:46 pm)
[PATCH/RFC v2 3/4] Pass eol conv mode as an argument inste ..., Eyvind Bernhardsen, (Sat May 8, 2:46 pm)
[PATCH/RFC v2 4/4] Add per-repository eol normalization, Eyvind Bernhardsen, (Sat May 8, 2:46 pm)
Re: [PATCH/RFC v2 1/4] Add "core.eolStyle" variable to con ..., Robert Buck, (Mon May 10, 4:43 am)