From 6cfd358f80ac1824fb5cbb0441d4313dde8d5be1 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Thu, 5 Jan 2023 18:24:36 +0000 Subject: [PATCH] Improve the gitattributes and gitignore files (#234) * Delete some not needed files * Specify wgsl * Finalise gitattributes --- .gitattributes | 8 +++++--- .gitignore | 4 ---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitattributes b/.gitattributes index 7b48404..bb5dc1e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,5 @@ -**/shader/* linguist-language=glsl -**/shader/gen/* linguist-generated -piet-wgpu/shader/* linguist-language=wgsl +# This is a lie. However, linguist does not support wgsl, so this is good-enough +# Show the amount of the code which is shader +shader/*.wgsl linguist-language=glsl +# Potentially better syntax highlighting +# shader/*.wgsl linguist-language=Rust diff --git a/.gitignore b/.gitignore index e0229c8..ea8c4bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ /target -**/*.rs.bk -.ninja_deps -.ninja_log -**/shader/gen