Skip to content

Commit

Permalink
Add .gitattributes for CRLF avoidance
Browse files Browse the repository at this point in the history
  • Loading branch information
retronym committed Feb 10, 2013
1 parent 0280306 commit 4eb61cd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# These files are text and should be normalized (convert crlf => lf)
*.c text
*.check text
*.css text
*.html text
*.java text
*.js text
*.sbt text
*.scala text
*.sh text
*.txt text
*.xml text

# Windows-specific files get windows endings
*.bat eol=crlf
*.cmd eol=crlf
*-windows.tmpl eol=crlf

# Some binary file types for completeness
# (binary is a macro for -text -diff)
*.dll binary
*.gif binary
*.jpg binary
*.png binary
*.class binary
*.jar binary

0 comments on commit 4eb61cd

Please sign in to comment.