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:
parent
163a97728f
commit
6dea927787
|
@ -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
|
Loading…
Reference in New Issue