1 From 4a3f2fa9ed7260ed0d8fca1aa6130521d8cedb49 Mon Sep 17 00:00:00 2001
2 From: Sven Strickroth <email@cs-ware.de>
3 Date: Fri, 23 Jan 2015 15:34:14 +0100
4 Subject: [PATCH 3/7] Adding a CRLF-file with core.autocrlf=input and
5 core.safecrlf=true does not fail as with vanilla git
7 Signed-off-by: Sven Strickroth <email@cs-ware.de>
9 src/crlf.c | 13 +++++++++++++
10 1 file changed, 13 insertions(+)
12 diff --git a/src/crlf.c b/src/crlf.c
13 index c1f87485e..d88ad00f3 100644
16 @@ -160,6 +160,19 @@ static int crlf_apply_to_odb(
20 + } else if (stats.crlf && ca->auto_crlf == GIT_AUTO_CRLF_INPUT) {
21 + switch (ca->safe_crlf) {
22 + case GIT_SAFE_CRLF_FAIL:
24 + GITERR_FILTER, "CRLF would be replaced by LF in '%s'",
25 + git_filter_source_path(src));
27 + case GIT_SAFE_CRLF_WARN:
28 + /* TODO: issue warning when warning API is available */;