Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commitdec6cba393cc73f7a6fd4239ef44457239a4d599
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 17 Feb 2014 18:08:10 +0000 (17 12:08 -0600)
treec950892fda4c3c45bee68be5720e278dff0c4c6a
parent9d2ae8b5e316635c7cc4030dda5c4aeac03e9148
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