Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, May 7, 2010 - 5:33 pm

On Fri, 7 May 2010, hasen j wrote:


Well, my definition of text is "does it make sense to do any end-of-line 
conversions". That's the only definition that makes sense for an SCM, at 
least in the current context. If doing conversions on the line endings is 
wrong, then it's not text.

And your whole premise was that conversions were always wrong. So the way 
you put it, that's not a text-file, it's a binary file.


.. and that's what I suggested "core.crlf=on" would mean.

However, if you think that it needs to be CRLF on _all_ platforms, even 
platforms where CRLF is _wrong_ for a text-file, then see above: in that 
case it's not a text-file at all as far as the SCM is concerned.

In that case it's just a binary file, and CRLF is _not_ "end of text 
line", it's part of the definition of the format for that binary file.

			Linus
--
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:
Re: What should be the CRLF policy when win + Linux?, Ramkumar Ramachandra, (Wed May 5, 6:27 am)
Re: What should be the CRLF policy when win + Linux?, Wilbert van Dolleweerd, (Thu May 6, 12:29 am)
Re: What should be the CRLF policy when win + Linux?, Erik Faye-Lund, (Thu May 6, 3:03 am)
Re: What should be the CRLF policy when win + Linux?, Linus Torvalds, (Thu May 6, 10:15 am)
Re: What should be the CRLF policy when win + Linux?, Erik Faye-Lund, (Thu May 6, 10:26 am)
Re: What should be the CRLF policy when win + Linux?, Linus Torvalds, (Thu May 6, 1:23 pm)
Re: What should be the CRLF policy when win + Linux?, Erik Faye-Lund, (Thu May 6, 1:40 pm)
[PATCH/RFC 0/3] Per-repository end-of-line normalization, Eyvind Bernhardsen, (Thu May 6, 3:27 pm)
[PATCH/RFC 2/3] Add tests for per-repository eol normalization, Eyvind Bernhardsen, (Thu May 6, 3:27 pm)
[PATCH/RFC 3/3] Add per-repository eol normalization, Eyvind Bernhardsen, (Thu May 6, 3:27 pm)
Re: What should be the CRLF policy when win + Linux?, Erik Faye-Lund, (Thu May 6, 4:25 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Eyvind Bernhardsen, (Fri May 7, 12:23 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Eyvind Bernhardsen, (Fri May 7, 12:25 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Finn Arne Gangstad, (Fri May 7, 12:41 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Eyvind Bernhardsen, (Fri May 7, 1:11 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Eyvind Bernhardsen, (Fri May 7, 1:42 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Eyvind Bernhardsen, (Fri May 7, 2:17 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Eyvind Bernhardsen, (Fri May 7, 2:37 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, A Large Angry SCM, (Fri May 7, 3:09 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Linus Torvalds, (Fri May 7, 5:33 pm)
Re: [PATCH/RFC 0/3] Per-repository end-of-line normalization, Eyvind Bernhardsen, (Sun May 9, 12:49 am)
Re: What should be the CRLF policy when win + Linux?, Anthony W. Youngman, (Tue May 18, 8:13 am)