diff options
author | Daniel Black <daniel@mariadb.org> | 2021-01-15 17:54:27 +1100 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2021-01-15 18:29:35 +1100 |
commit | 9a08fcbf60567992971262ececee8d8429c20756 (patch) | |
tree | f3d88e06efb574c5defe3263369c0d75814e0b42 /.gitattributes | |
parent | 0dfabf6e409056b02e37d4503d3517725024f90d (diff) | |
download | mariadb-git-9a08fcbf60567992971262ececee8d8429c20756.tar.gz |
.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.
Diffstat (limited to '.gitattributes')
-rw-r--r-- | .gitattributes | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index 9d638481a84..a7be37ae370 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,16 @@ pcre/testdata/greppatN4 -text *.ic diff=cpp *.cpp diff=cpp *.java diff=cpp + +# Github lists too many languages +# curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/MariaDB/server/languages +# Their detection is based on https://github.com/github/linguist#overrides so we use some overrides +zlib/* linguist-vendored +tests/*.tst linguist-language=SQL +tests/*.res linguist-language=SQL +storage/innobase/include/univ.i linguist-language=C +*.inc linguist-language=MariaDB\ Test +*.test linguist-language=MariaDB\ Test +*.result linguist-language=MariaDB\ Test +*.frm linguist-language=MariaDB\ Table +*.h.pp linguist-language=C |