Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commit9f79ea3b0ef1b8abda26e1dd851e800236f9f15d
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 10 Apr 2014 18:53:32 +0000 (10 13:53 -0500)
treef9036418a2ce9afd316379a82f73fbad3df1307a
parent9da68ecd8e540fd10d787f28d3ff8b82291e67c0
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