From 1a4de92d1c1af2a4221c31f6d31ac45ce767ba7a Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Sat, 15 Feb 2020 15:06:20 +0300 Subject: [PATCH] Add .gitattributes to ensure files have expected line endings --- .gitattributes | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6c3a10b1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,25 @@ +# Auto detect text files and perform LF normalization +* text=auto + +*.java text +*.html text +*.css text +*.js text +*.sql text +*.q text + +# Note: executable is a non-standard attribute, and it is used by the release plugin +*.sh text eol=lf executable +*.cgi text eol=lf executable + +*.bat text eol=crlf +*.cmd text eol=crlf + +# Images are explicitly configured as binary, just in case +*.gif binary +*.jpg binary +*.jpeg binary +*.png binary + +# Below files don't have extension, so we mention them explicitly +/gradlew text eol=lf executable