1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 08:18:50 -05:00

Update Unity.gitattributes

This commit is contained in:
Bertrand Guay-Paquet 2024-03-01 21:27:52 +01:00 committed by Alexander Karatarakis
parent 2aeb855a6b
commit 13ddcd2e6d

View File

@ -1,24 +1,26 @@
# Define macros (only works in top-level gitattributes files)
[attr]lfs filter=lfs diff=lfs merge=lfs -text
[attr]unity-json eol=lf linguist-language=json
[attr]unity-yaml merge=unityyamlmerge eol=lf linguist-language=yaml
# Optionally collapse Unity-generated files on GitHub diffs
# [attr]unity-yaml merge=unityyamlmerge text linguist-language=yaml linguist-generated
# Unity files
# Unity source files
*.cginc text
*.compute text linguist-language=hlsl
*.cs text diff=csharp
*.hlsl text linguist-language=hlsl
*.raytrace text linguist-language=hlsl
*.shader text
# Unity JSON files
*.asmdef text linguist-language=json
*.asmref text linguist-language=json
*.index text linguist-language=json
*.inputactions text linguist-language=json
*.shadergraph text linguist-language=json
*.shadersubgraph text linguist-language=json
*.asmdef unity-json
*.asmref unity-json
*.index unity-json
*.inputactions unity-json
*.shadergraph unity-json
*.shadersubgraph unity-json
# Unity UI Toolkit files
*.tss text diff=css linguist-language=css