Skip to content

Commit 4fbe017

Browse files
committed
fix: normalize line endings
Line endings are currently mixed between LF, CRLF and both! Thankfully, git has a way to normalize this. https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
1 parent 5b2a9f0 commit 4fbe017

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.gitattributes

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Java sources
5+
*.java text diff=java
6+
*.kt text diff=kotlin
7+
*.groovy text diff=java
8+
*.scala text diff=java
9+
*.gradle text diff=java
10+
*.gradle.kts text diff=kotlin
11+
12+
# These files are text and should be normalized (Convert crlf => lf)
13+
*.css text diff=css
14+
*.scss text diff=css
15+
*.sass text
16+
*.df text
17+
*.htm text diff=html
18+
*.html text diff=html
19+
*.js text
20+
*.jsp text
21+
*.jspf text
22+
*.jspx text
23+
*.properties text
24+
*.tld text
25+
*.tag text
26+
*.tagx text
27+
*.xml text
28+
29+
# These files are binary and should be left untouched
30+
# (binary is a macro for -text -diff)
31+
*.class binary
32+
*.dll binary
33+
*.ear binary
34+
*.jar binary
35+
*.so binary
36+
*.war binary
37+
*.jks binary

0 commit comments

Comments
 (0)