From 0aed121fa7f8117b467dfd5f4805361965a39446 Mon Sep 17 00:00:00 2001 From: olivierlemasle Date: Sun, 4 Oct 2015 20:47:35 +0200 Subject: [PATCH] Add .gitattributes to avoid line endings issues Since commit 56e687f4979d, Linux line endings (LF) are enforced. But on Windows, a common practice is to set core.autocrlf to 'auto', wich mean that the local copy of the file has Windows line endings, whereas the remote copy has Linux line endings (cf. https://help.github.com/articles/dealing-with-line-endings/#platform-windows). With core.autoclrf=auto, Checkstyle will throw an error because local files will have Windows line endings. This setting will set Linux line endings for all text files, except .cmd files. --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..6008505fa1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +* text eol=lf +*.cmd binary