Skip to content

Commit 024348d

Browse files
imaymorningman
authored andcommitted
Enable auto convert when check in (apache#1926)
Leverage gitattributes to enable auto convert end-of-line to LF when checking in. Convert already exist CRLF to LF by removing all files and checking out with new .gitattributes file. Except .gitattributes, all files are only modified at the end of line.
1 parent a6b843c commit 024348d

27 files changed

+4996
-4980
lines changed

.gitattributes

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Use whitelist to set text on
2+
# text means convert to LF when check in
3+
# eol=lf means convert to LF when check out
4+
*.cpp text eol=lf
5+
*.cc text eol=lf
6+
*.c text eol=lf
7+
*.h text eol=lf
8+
*.java text eol=lf
9+
*.py text eol=lf
10+
*.js text eol=lf
11+
*.md text eol=lf
12+
*.txt text eol=lf
13+
*.sh text eol=lf
14+
*.thrift text eol=lf
15+
*.proto text eol=lf
16+
*.conf text eol=lf

0 commit comments

Comments
 (0)