Skip to content

Commit 9a08fcb

Browse files
committed
.gitattributes - correct language detection
Attempting to sign up to https://bestpractices.coreinfrastructure.org/en/projects complains with "Implementation languages is too long (maximum is 254 characters)" Looking at: curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/MariaDB/server/languages It does appear that we're (just) over the limit. As github is based on https://github.com/github/linguist, let's just play nice and make our languages look realistic.
1 parent 0dfabf6 commit 9a08fcb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@ pcre/testdata/greppatN4 -text
3333
*.ic diff=cpp
3434
*.cpp diff=cpp
3535
*.java diff=cpp
36+
37+
# Github lists too many languages
38+
# curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/MariaDB/server/languages
39+
# Their detection is based on https://github.com/github/linguist#overrides so we use some overrides
40+
zlib/* linguist-vendored
41+
tests/*.tst linguist-language=SQL
42+
tests/*.res linguist-language=SQL
43+
storage/innobase/include/univ.i linguist-language=C
44+
*.inc linguist-language=MariaDB\ Test
45+
*.test linguist-language=MariaDB\ Test
46+
*.result linguist-language=MariaDB\ Test
47+
*.frm linguist-language=MariaDB\ Table
48+
*.h.pp linguist-language=C

0 commit comments

Comments
 (0)