Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commitd98aa9f2d15d3d9de25e1384e7932093a6bf6aca
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerKarsten Blees <blees@dcon.de>
Sat, 16 Aug 2014 00:59:59 +0000 (16 02:59 +0200)
tree74da18654ee0890c75cfafaaf791794810e41b51
parent1d4af23a3cb915f7a98fa28d597f6ca936d7acf7
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