Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commit7ff641158ca1e7201f4039815049284da8988582
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:42:34 +0000 (15 09:42 +0200)
tree919920f08b7c7c485fb00e6ed336a08ef9e0b452
parent4407414ed9ad04509c8bbbeb4282801379bb7028
Push the NATIVE_CRLF Makefile variable to C and added a test for native.

Commit 95f31e9a correctly points out that the NATIVE_CRLF setting is
incorrectly set on Mingw git. However, the Makefile variable is not
propagated to the C preprocessor and results in no change. This patch
pushes the definition to the C code and adds a test to validate that
when core.eol as native is crlf, we actually normalize text files to this
line ending convention when core.autocrlf is false.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
Makefile
t/t0026-eol-config.sh