Skip to content

Commit

Permalink
Added gitattributes for X-Ray file types
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Nov 17, 2018
1 parent 144c278 commit ab68dfd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

# Shaders are plain text
*.vs diff=astextplain
*.ps diff=astextplain
2 changes: 2 additions & 0 deletions res/gamedata/configs/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Configs
*.ltx text linguist-language=INI
2 changes: 2 additions & 0 deletions res/gamedata/scripts/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# X-Ray uses custom extension instead of .lua
*.script text linguist-language=Lua
15 changes: 15 additions & 0 deletions res/gamedata/shaders/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# DirectX renderer shader extension names
*.ps text linguist-language=HLSL
*.vs text linguist-language=HLSL
*.gs text linguist-language=HLSL
*.cs text linguist-language=HLSL
*.hs text linguist-language=HLSL
*.ds text linguist-language=HLSL

# OpenGL renderer uses the same extensions
gl/*.ps text linguist-language=GLSL
gl/*.vs text linguist-language=GLSL
gl/*.gs text linguist-language=GLSL
gl/*.cs text linguist-language=GLSL
gl/*.hs text linguist-language=GLSL
gl/*.ds text linguist-language=GLSL

0 comments on commit ab68dfd

Please sign in to comment.