Files
git/Documentation
Torsten Bögershausen 6523728499 convert: unify the "auto" handling of CRLF
Before this change,
$ echo "* text=auto" >.gitattributes
$ echo "* eol=crlf" >>.gitattributes

would have the same effect as
$ echo "* text" >.gitattributes
$ git config core.eol crlf

Since the 'eol' attribute had higher priority than 'text=auto', this may
corrupt binary files and is not what most users expect to happen.

Make the 'eol' attribute to obey 'text=auto' and now
$ echo "* text=auto" >.gitattributes
$ echo "* eol=crlf" >>.gitattributes
behaves the same as
$ echo "* text=auto" >.gitattributes
$ git config core.eol crlf

In other words,
$ echo "* text=auto eol=crlf" >.gitattributes
has the same effect as
$ git config core.autocrlf true

and
$ echo "* text=auto eol=lf" >.gitattributes
has the same effect as
$ git config core.autocrlf input

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-07-06 11:53:51 -07:00
..
2016-03-28 12:19:45 -07:00
2016-02-26 13:37:16 -08:00
2016-02-24 13:25:54 -08:00
2016-02-26 13:37:17 -08:00
2014-11-04 13:14:44 -08:00
2014-11-04 13:14:44 -08:00
2016-03-03 13:43:36 -08:00
2015-07-21 14:08:14 -07:00
2015-10-05 12:30:13 -07:00
2013-10-18 13:50:12 -07:00
2016-03-28 12:19:45 -07:00
2015-01-22 13:44:14 -08:00
2016-03-03 13:43:36 -08:00