Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commiteeeedccf2fc903b260668a89d7e77f7b48ca149c
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerStepan Kasal <kasal@ucw.cz>
Wed, 16 Apr 2014 14:32:39 +0000 (16 16:32 +0200)
tree5970e8850c25510ef6efe0c003bffb5d481a72d5
parenta0b636bfea5be31f08004501a40106a256d02466
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