Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commitc29187a0b45dbadeaf210225e76c9940395e765e
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 26 Nov 2012 00:24:00 +0000 (26 00:24 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 13 Sep 2013 12:35:04 +0000 (13 13:35 +0100)
tree012ea0f9c8cc923025ad44210d5c0b7538152c3a
parent498e5f67ea0db879670a56552aa0b270d592ef33
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