From f2bc6a8e88fc00ccbcd1b5e071ed6ba6bf1a0d05 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Thu, 4 May 2023 13:52:56 -0500 Subject: [PATCH] Reclassify .toml files as .c files on GitHub With the new test framework, GitHub really wants to mark littlefs as a python project. telling it to reclassify our test .toml files as C code (which they are 95% of anyways) remedies this. An alternative would be to add syntax=c vim modelines to the test/bench files, which would also render them with C syntax highlighting on GitHub. Unfortunately the interspersed toml metadata mucks this up, making the result not very useful. --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..26d04251 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# GitHub really wants to mark littlefs as a python project, telling it to +# reclassify our test .toml files as C code (which they are 95% of anyways) +# remedies this +*.toml linguist-language=c