Update .gitattributes

- GitHub language detection.
- Normalize EOL for text files.

Based on <https://github.com/godotengine/godot/blob/master/.gitattributes>.
This commit is contained in:
Leroy Hopson 2021-07-17 11:58:36 +07:00
parent aa83b206a3
commit 0973aad7e6
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

15
.gitattributes vendored
View file

@ -1,2 +1,15 @@
# linguist override to identify .gd files as GDScript rather than GAP. # Properly detect languages on Github.
*.h linguist-language=cpp
*.gd linguist-language=GDScript *.gd linguist-language=GDScript
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf
# The above only works properly for Git 2.10+, so for older versions
# we need to manually list the binary files we don't want modified.
*.dll binary
*.dylib binary
*.png binary
*.so binary
*.ttf binary
*.wasm binary
*.wav binary