Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commit221b3c570188f49cc8f69510fba48ef8a0b4f1a0
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 10 May 2014 21:56:40 +0000 (10 16:56 -0500)
tree919920f08b7c7c485fb00e6ed336a08ef9e0b452
parent6cdf307d7911099fd824dde3d2628a531be0aab6
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