Skip to content

Commit 00b05b0

Browse files
committed
Add a .gitattributes file to control line ending normalization, which is otherwise a mess that depends on each git client's settings. (See http://schacon.github.io/git/gitattributes.html and http://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/ for more about that.)
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=79186519
1 parent 36faf58 commit 00b05b0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.gitattributes

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Known text files
5+
*.java text
6+
*.xml text
7+
*.yml text
8+
*.md text
9+
*.sh text
10+
*.css text
11+
*.txt text
12+
13+
# Known binary files
14+
*.jar binary

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ out/
1414
.classpath
1515
.project
1616
.settings/
17-
.metadata/
17+
.metadata/

0 commit comments

Comments
 (0)