Skip to content

Commit ab68dfd

Browse files
committed
Added gitattributes for X-Ray file types
1 parent 144c278 commit ab68dfd

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

.gitattributes

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,3 @@
2020
*.PDF diff=astextplain
2121
*.rtf diff=astextplain
2222
*.RTF diff=astextplain
23-
24-
# Shaders are plain text
25-
*.vs diff=astextplain
26-
*.ps diff=astextplain

res/gamedata/configs/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configs
2+
*.ltx text linguist-language=INI

res/gamedata/scripts/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# X-Ray uses custom extension instead of .lua
2+
*.script text linguist-language=Lua

res/gamedata/shaders/.gitattributes

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# DirectX renderer shader extension names
2+
*.ps text linguist-language=HLSL
3+
*.vs text linguist-language=HLSL
4+
*.gs text linguist-language=HLSL
5+
*.cs text linguist-language=HLSL
6+
*.hs text linguist-language=HLSL
7+
*.ds text linguist-language=HLSL
8+
9+
# OpenGL renderer uses the same extensions
10+
gl/*.ps text linguist-language=GLSL
11+
gl/*.vs text linguist-language=GLSL
12+
gl/*.gs text linguist-language=GLSL
13+
gl/*.cs text linguist-language=GLSL
14+
gl/*.hs text linguist-language=GLSL
15+
gl/*.ds text linguist-language=GLSL

0 commit comments

Comments
 (0)