From: XhmikosR Date: Sat, 22 Feb 2020 13:27:11 +0000 (+0200) Subject: Enforce LF for all files except .bat files X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=214dd955c205b7c91a45f57c5b33f6303e303bf3;p=stevenblack-hosts.git Enforce LF for all files except .bat files This fixes issues on Windows where autocrlf is true by default --- diff --git a/.editorconfig b/.editorconfig index 97b4e682d..aa8db0762 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,6 +6,9 @@ trim_trailing_whitespace = true indent_size = 4 end_of_line = LF +[*.bat] +end_of_line = CRLF + [*.md] trim_trailing_whitespace = false insert_final_newline = true diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..1182c5124 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# Enforce Unix newlines for all files +* text=auto eol=lf +# Enforce Windows newlines for .bat files +*.bat text eol=crlf