Enforce LF for all files except .bat files
authorXhmikosR <redacted>
Sat, 22 Feb 2020 13:27:11 +0000 (15:27 +0200)
committerXhmikosR <redacted>
Sun, 23 Feb 2020 07:33:51 +0000 (09:33 +0200)
This fixes issues on Windows where autocrlf is true by default

.editorconfig
.gitattributes [new file with mode: 0644]

index 97b4e682de3a95d61c80aaea0e3d67e952404615..aa8db076280ddc8ce3e208404285af26a8741c25 100644 (file)
@@ -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 (file)
index 0000000..1182c51
--- /dev/null
@@ -0,0 +1,4 @@
+# Enforce Unix newlines for all files
+* text=auto eol=lf
+# Enforce Windows newlines for .bat files
+*.bat text eol=crlf
git clone https://git.99rst.org/PROJECT