Respect crlf attribute in "git add" even if core.autocrlf has not been set
commitbdd639f64f4075b868fe99f89add93f34d45fd2a
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 9 Jul 2008 15:39:23 +0000 (9 17:39 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 19:17:12 +0000 (7 20:17 +0100)
tree7ea51b37062e33f62338a12deba6894036e15d4b
parent586f59d95e691b2410968d0440b7bb6f5460e849
Respect crlf attribute in "git add" even if core.autocrlf has not been set

When a file's crlf attribute is explicitely set, it does not make sense
to ignore it when adding the file, just because the config variable
core.autocrlf has not been set.

The alternative would be risking to get CR/LF files into the repository
just because one user forgot to set core.autocrlf.

This patch does not affect the case when the crlf attribute is unset,
or when checking files out.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
convert.c
t/t0020-crlf.sh