Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commite0a28fd5ed2b20881f9d5da865b573bac157e3b7
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 5 Dec 2013 23:20:34 +0000 (5 23:20 +0000)
treeeec65c3414953459037eb5aaf83dddd5fc3f1d4a
parent1e02ebed42e5f333453c6b6594980b825c839c4c
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>
Makefile
t/t0026-eol-config.sh