Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commit0caba2cacbb9d8e6a31783b45f1a13e52dec6ce8
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerStepan Kasal <kasal@ucw.cz>
Thu, 29 May 2014 08:41:35 +0000 (29 10:41 +0200)
treed90e0b0f9db4a5b2c465194e84616701ab616c23
parentbe6a5e91517f72cf8c7511bd41580b2c5cbcab1f
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