Skip to content

Commit

Permalink
Add a .gitattributes file to control line ending normalization, which…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
cgdecker committed Nov 4, 2014
1 parent 36faf58 commit 00b05b0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Auto detect text files and perform LF normalization
* text=auto

# Known text files
*.java text
*.xml text
*.yml text
*.md text
*.sh text
*.css text
*.txt text

# Known binary files
*.jar binary
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ out/
.classpath
.project
.settings/
.metadata/
.metadata/

0 comments on commit 00b05b0

Please sign in to comment.