Push the NATIVE_CRLF Makefile variable to C and added a test for native.
commit525934f9abe1feb0af711b6318fa33c630dba361
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, 30 Dec 2013 01:18:04 +0000 (29 19:18 -0600)
tree0fbe5ca8a6a2e7ac579106c17b319d78aa79883e
parent0bed0789b72509cd132f06f2ea80c07f4df4323c
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