From bfe373e93251b14e6d2772b5d7c767fede72474a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20B=C3=B6gershausen?= Date: Fri, 6 Dec 2019 10:52:48 +0100 Subject: [PATCH] .gitattributes: CRLF for all files that need them Improvements of the CRLF handling: When a file is checked out on a drive shared with Linux or MacOS, those OS have different default line endings. Windows uses CRLF, and Linux/Mac use LF. To be able to checkout files under Linux/Mac and to get the same result, mark all known file types with eol=CRLF --- .gitattributes | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) mode change 100644 => 100755 .gitattributes diff --git a/.gitattributes b/.gitattributes old mode 100644 new mode 100755 index a1aec5e..31f31e7 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,18 @@ # end of line conversion CLRF -- LF # Default is auto * text=auto -# -# Shell scripts must be line feed + +# Hidden .git files: CRLF for convenience +.gitattributes text eol=crlf +.gitignore text eol=crlf + +# Shell scripts must be LF *.sh text eol=lf + +# Tc files must be CRLF +*.plcproj text eol=crlf +*.Tc* text eol=crlf +*.tsproj text eol=crlf +*.txt text eol=crlf +*.xml text eol=crlf +*.xti text eol=crlf