diff --git a/res/gamedata/shaders/.gitattributes b/res/gamedata/shaders/.gitattributes index 45ee9ca92a3..7f32264ea16 100644 --- a/res/gamedata/shaders/.gitattributes +++ b/res/gamedata/shaders/.gitattributes @@ -1,21 +1,21 @@ # X-Ray blending template -*.s text linguist-language=Lua diff=Lua +*.s text diff linguist-language=Lua -# Git assumes ps is binary, but we use it as a shader file extension -*.ps -binary text linguist-language=HLSL diff=HLSL +# Just an additional fix: unset binary attribute +*.ps -binary # DirectX renderer shader extension names -r*/*.ps -binary text linguist-language=HLSL diff=HLSL -r*/*.vs text linguist-language=HLSL diff=HLSL -r*/*.gs text linguist-language=HLSL diff=HLSL -r*/*.cs text linguist-language=HLSL diff=HLSL -r*/*.hs text linguist-language=HLSL diff=HLSL -r*/*.ds text linguist-language=HLSL diff=HLSL +r*/*.ps text diff=cpp linguist-language=HLSL +r*/*.vs text diff=cpp linguist-language=HLSL +r*/*.gs text diff=cpp linguist-language=HLSL +r*/*.cs text diff=cpp linguist-language=HLSL +r*/*.hs text diff=cpp linguist-language=HLSL +r*/*.ds text diff=cpp linguist-language=HLSL # OpenGL renderer uses the same extensions -gl/*.ps -binary text linguist-language=GLSL diff=GLSL -gl/*.vs text linguist-language=GLSL diff=GLSL -gl/*.gs text linguist-language=GLSL diff=GLSL -gl/*.cs text linguist-language=GLSL diff=GLSL -gl/*.hs text linguist-language=GLSL diff=GLSL -gl/*.ds text linguist-language=GLSL diff=GLSL +gl/*.ps text diff=cpp linguist-language=GLSL +gl/*.vs text diff=cpp linguist-language=GLSL +gl/*.gs text diff=cpp linguist-language=GLSL +gl/*.cs text diff=cpp linguist-language=GLSL +gl/*.hs text diff=cpp linguist-language=GLSL +gl/*.ds text diff=cpp linguist-language=GLSL