git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
df0ea73
)
Enforce LF for all files except .bat files
author
XhmikosR
<redacted>
Sat, 22 Feb 2020 13:27:11 +0000
(15:27 +0200)
committer
XhmikosR
<redacted>
Sun, 23 Feb 2020 07:33:51 +0000
(09:33 +0200)
This fixes issues on Windows where autocrlf is true by default
.editorconfig
patch
|
blob
|
history
.gitattributes
[new file with mode: 0644]
patch
|
blob
diff --git
a/.editorconfig
b/.editorconfig
index 97b4e682de3a95d61c80aaea0e3d67e952404615..aa8db076280ddc8ce3e208404285af26a8741c25 100644
(file)
--- 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
(file)
index 0000000..
1182c51
--- /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
git clone https://git.99rst.org/PROJECT