Add .gitattributes file to help maintain proper newlines.

This commit is contained in:
jim-p 2012-12-10 11:20:39 -05:00
parent c2483e3196
commit 41ab0d0745
1 changed files with 46 additions and 0 deletions

46
.gitattributes vendored Normal file
View File

@ -0,0 +1,46 @@
# Using default template from https://help.github.com/articles/dealing-with-line-endings with modifications.
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
*.php text
*.inc text
*.sh text
*.h text
*.md5 text
*.sha256 text
*.conf text
*.xml text
*.ovf text
*.css text
*.htm* text
*.js text
*.diff text
*.patch text
*.pl text
*.rules text
*.txt text
rc.* text
*.sql text
*.mk text
# Files that will always have CRLF line endings on checkout. (Not sure we have any of these)
# *.dos text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.gif binary
*.so* binary
*.gz binary
*.tgz binary
*.exe binary
*.ico binary
*.img binary
*.zip binary
*.uzip binary
*.tar binary
*.ttf binary