Skip to content

Commit

Permalink
Force Unix line endings for text files (only)
Browse files Browse the repository at this point in the history
This should prevent binary files like .gz from being touched by the LF
endofline conversion.
  • Loading branch information
rmunn committed Dec 8, 2017
1 parent 07b1efa commit 5f04f5f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,24 @@

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.css text
*.js text
*.json text
*.html text
*.php text
*.cs text

# Declare files that will always have LF line endings on checkout.
*.css text eol=lf
*.js text eol=lf
*.json text eol=lf
*.html text eol=lf
*.php text eol=lf
*.cs text eol=lf
*.sh text eol=lf
protractor text eol=lf

# Denote all files that are truly binary and should not be modified
*.png binary
*.jpg binary
*.gif binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
*.7z binary
*.gz binary

0 comments on commit 5f04f5f

Please sign in to comment.