From eacf3c469f53e89bffc8c671bc8e7f601b3ad4a3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 24 Dec 2025 06:46:49 +0100 Subject: [PATCH 1/4] Force Linguist to detect `.txt`, `.vdf`, and `.json` files This adds the files to the language stats of the repository, and as a result should make the repository display "Valve Data Format" as primary language. --- .gitattributes | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index 7e616043e..217b8db5b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,5 @@ -*.txt text eol=crlf -*.vdf text eol=crlf -*.json text eol=lf +*.txt text eol=crlf linguist-detectable linguist-language="Text" +*.vdf text eol=crlf linguist-detectable linguist-language="Valve Data Format" +*.json text eol=lf linguist-detectable linguist-language="JSON" *.go text eol=lf go.* text eol=lf From 8062fa5d13fe3ca9a227cc14d1975e88fe0f2b8f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 24 Dec 2025 06:48:30 +0100 Subject: [PATCH 2/4] Make `.txt` files be detected as Valve Data Format --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 217b8db5b..8d51c90c3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ -*.txt text eol=crlf linguist-detectable linguist-language="Text" +*.txt text eol=crlf linguist-detectable linguist-language="Valve Data Format" *.vdf text eol=crlf linguist-detectable linguist-language="Valve Data Format" *.json text eol=lf linguist-detectable linguist-language="JSON" *.go text eol=lf From 886d235734ca822f9c6f2744e597f29b13793b6b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 24 Dec 2025 06:51:16 +0100 Subject: [PATCH 3/4] GitHub doesn't like double quotes --- .gitattributes | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index 8d51c90c3..6c2f88046 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,5 @@ -*.txt text eol=crlf linguist-detectable linguist-language="Valve Data Format" -*.vdf text eol=crlf linguist-detectable linguist-language="Valve Data Format" -*.json text eol=lf linguist-detectable linguist-language="JSON" +*.txt text eol=crlf linguist-detectable linguist-language=vdf +*.vdf text eol=crlf linguist-detectable linguist-language=vdf +*.json text eol=lf linguist-detectable linguist-language=json *.go text eol=lf go.* text eol=lf From 856d8bc11cc335371650f7b5e6cf45147915143e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 24 Dec 2025 06:54:28 +0100 Subject: [PATCH 4/4] Add XML too --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 6c2f88046..8e816b8a7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ *.txt text eol=crlf linguist-detectable linguist-language=vdf *.vdf text eol=crlf linguist-detectable linguist-language=vdf *.json text eol=lf linguist-detectable linguist-language=json +*.xml linguist-detectable linguist-language=xml *.go text eol=lf go.* text eol=lf