Skip to content

Commit

Permalink
Enable auto convert when check in (apache#1926)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
imay authored and morningman committed Oct 9, 2019
1 parent a6b843c commit 024348d
Show file tree
Hide file tree
Showing 27 changed files with 4,996 additions and 4,980 deletions.
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Use whitelist to set text on
# text means convert to LF when check in
# eol=lf means convert to LF when check out
*.cpp text eol=lf
*.cc text eol=lf
*.c text eol=lf
*.h text eol=lf
*.java text eol=lf
*.py text eol=lf
*.js text eol=lf
*.md text eol=lf
*.txt text eol=lf
*.sh text eol=lf
*.thrift text eol=lf
*.proto text eol=lf
*.conf text eol=lf
Loading

0 comments on commit 024348d

Please sign in to comment.