add gitattributes

This commit is contained in:
Shuo Feng 2025-05-12 21:57:08 -04:00
parent 4e3e334699
commit aa8f3c45cb
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1

59
.gitattributes vendored Normal file
View file

@ -0,0 +1,59 @@
lfs-files/** filter=lfs diff=lfs merge=lfs -text
# Set default behavior to maintain line endings (LF in repository, native on checkout)
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout
*.cs text
*.h text
*.cpp text
*.c text
*.hpp text
*.uplugin text
*.ini text
*.config text
*.uproject text
*.xml text
*.json text
*.md text
*.txt text
*.html text
*.css text
*.js text
*.ts text
*.py text
*.bat text
*.sh text eol=lf
# Declare files that will always have CRLF line endings on checkout
*.sln text eol=crlf
*.csproj text eol=crlf
*.vcxproj text eol=crlf
*.vcxproj.filters text eol=crlf
# Denote all files that are truly binary and should not be modified
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.tga binary
*.psd binary
*.uasset binary
*.umap binary
*.mp3 binary
*.wav binary
*.mp4 binary
*.mov binary
*.fla binary
*.swf binary
*.dll binary
*.lib binary
*.a binary
*.exe binary
*.pdf binary
*.zip binary
*.7z binary
*.ttf binary
*.otf binary