mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Enforce LF for all files except .bat files
This fixes issues on Windows where autocrlf is true by default
This commit is contained in:
@@ -6,6 +6,9 @@ trim_trailing_whitespace = true
|
|||||||
indent_size = 4
|
indent_size = 4
|
||||||
end_of_line = LF
|
end_of_line = LF
|
||||||
|
|
||||||
|
[*.bat]
|
||||||
|
end_of_line = CRLF
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|||||||
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Enforce Unix newlines for all files
|
||||||
|
* text=auto eol=lf
|
||||||
|
# Enforce Windows newlines for .bat files
|
||||||
|
*.bat text eol=crlf
|
||||||
Reference in New Issue
Block a user