Skip to content

Commit 1718a95

Browse files
silverwindlafriks
authored andcommitted
Ensure LF on checkouts and in editors (#9259)
This will ensure our repo is always checked out with LF line endings which should help Windows users who have line ending normalization enabled. Additionally, added the LF preference to .editorconfig.
1 parent 43f7b97 commit 1718a95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ root = true
55
charset = utf-8
66
insert_final_newline = true
77
trim_trailing_whitespace = true
8+
end_of_line = lf
89

910
[*.go]
1011
indent_style = tab

.gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
* text=auto eol=lf
12
conf/* linguist-vendored
23
docker/* linguist-vendored
34
options/* linguist-vendored
45
public/* linguist-vendored
56
scripts/* linguist-vendored
6-
templates/* linguist-vendored
7+
templates/* linguist-vendored

0 commit comments

Comments
 (0)