diff --git a/.editorconfig b/.editorconfig index b624966..09a7419 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,7 +14,3 @@ trim_trailing_whitespace = true [*.{yml,yaml}] indent_size = 2 - -[*.{[Bb][Aa][Tt],[Cc][Mm][Dd]}] -# DOS/Win *requires* BAT/CMD files to have CRLF newlines -end_of_line = crlf diff --git a/.gitattributes b/.gitattributes index 06b5169..662a152 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,4 @@ -# retain windows line-endings in case checked out on mac or linux -* text eol=crlf +# Since Scoop is a Windows-only tool, we can safely use CRLF line endings for all text files. +# If Git decides that the content is text, its line endings will be normalized to CRLF in the working tree on checkout. +# In the Git index/repository the files will always be stored with LF line endings. This is fine. +* text=auto eol=crlf