From 13ddcd2e6dcf457fb30f833753128ae2f4811fad Mon Sep 17 00:00:00 2001 From: Bertrand Guay-Paquet Date: Fri, 1 Mar 2024 21:27:52 +0100 Subject: [PATCH] Update Unity.gitattributes --- Unity.gitattributes | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Unity.gitattributes b/Unity.gitattributes index 768f116..1addc75 100644 --- a/Unity.gitattributes +++ b/Unity.gitattributes @@ -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