convert: add SAFE_CRLF_KEEP_CRLF
commit2fea9de61857986431982ae89c01c89a2fc10038
authorTorsten Bögershausen <tboegi@web.de>
Sun, 13 Aug 2017 08:51:04 +0000 (13 10:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Aug 2017 17:21:17 +0000 (16 10:21 -0700)
treefb99259a2d520ddeafd90022a52cc696b24234fc
parent4d7268b888d7bb6d675340ec676e4239739d0f6d
convert: add SAFE_CRLF_KEEP_CRLF

When convert_to_git() is called, the caller may want to keep CRLF to
be kept as CRLF (and not converted into LF).

This will be used in the next commit, when apply works with files
that have CRLF and patches are applied onto these files.

Add the new value "SAFE_CRLF_KEEP_CRLF" to safe_crlf.

Prepare convert_to_git() to be able to run the clean filter, skip
the CRLF conversion and run the ident filter.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
convert.h