Add .gitattributes to embed standard IN the repo

That file will avoid users to file PR with wrong newline encoding.
I've tried to declare what seemed to be the most common extensions. It's
not strictly required, since the first line and the Git integrated
heurisitics would work just fine in general. But we're just adding a bit
more info here to lower chances to screw up.
This commit is contained in:
Baptiste Mathus 2016-10-03 21:30:00 +02:00
parent 163a97728f
commit 6dea927787
1 changed files with 39 additions and 0 deletions

39
.gitattributes vendored Normal file
View File

@ -0,0 +1,39 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
#
# The above will handle all files NOT found below
#
# These files are text and should be normalized (Convert crlf => lf)
*.css text
*.groovy text
*.htm text
*.html text
*.java text
*.js text
*.json text
*.jelly text
*.jellytag text
*.less text
*.properties text
*.rb text
*.sh text
*.txt text
*.xml text
# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.gz binary
*.tgz binary
*.ear binary
*.gif binary
*.hpi binary
*.ico binary
*.jar binary
*.jpg binary
*.jpeg binary
*.png binary
*.war binary
*.zip binary