t0027: Add repoMIX and LF_nul
commit8eeab92f02f3d9382572f0a604535c2b134c6763
authorTorsten Bögershausen <tboegi@web.de>
Sat, 25 Apr 2015 06:47:13 +0000 (25 08:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Apr 2015 16:41:29 +0000 (25 09:41 -0700)
treed440048f6c3da8fae7f0ce8dc08ee94d2a7ff689
parentd6d6673e66deb6c6263dbe3d6668748c4f51c9a6
t0027: Add repoMIX and LF_nul

"new safer autocrlf handling":

  - Check if eols in a file are converted at commit, when the file has
    CR (or CRLF) in the repo (technically speaking in the index).
  - Add a test-file repoMIX with mixed line-endings.
  - When converting LF->CRLF or CRLF->LF: check the warnings

checkout_files():

  - Checking out CRLF_nul and checking for eol coversion does not
    make much sense (CRLF will stay CRLF).
  - Use the file LF_nul instead: It is handled a binary in "auto" modes,
    and when declared as text the LF may be replaced with CRLF, depending
    on the configuration.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0027-auto-crlf.sh