t0027: check the eol conversion warnings
authorTorsten Bögershausen <tboegi@web.de>
Sun, 30 Nov 2014 20:15:52 +0000 (21:15 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Dec 2014 23:16:25 +0000 (15:16 -0800)
Depending on the file content, eol parameters and .gitattributes
"git add" may give a warning when the eol of a file will change when
the file is checked out again.

There are 2 different warnings, either "CRLF will be replaced..." or
"LF will be replaced...". Let t0027 check for these warnings by
adding new parameters to create_file_in_repo(), which tells what
warnings are expected.

When a file has eol=lf or eol=crlf in .gitattributes, it is handled
as text and should be normalized. Add tests for these cases that
were not covered.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found