2015-03-16 17:37:00 +01:00
|
|
|
# Set the default behavior, in case people don't have core.autocrlf set.
|
|
|
|
* text=auto
|
|
|
|
|
|
|
|
# Explicitly declare text files you want to always be normalized and converted
|
|
|
|
# to native line endings on checkout.
|
|
|
|
*.c text
|
2015-05-08 11:56:48 +02:00
|
|
|
*.ic text
|
2015-03-16 17:37:00 +01:00
|
|
|
*.cc text
|
|
|
|
*.cpp text
|
|
|
|
*.h text
|
|
|
|
*.test text
|
2016-04-27 12:57:27 +02:00
|
|
|
*.java text
|
2015-03-16 17:37:00 +01:00
|
|
|
|
2015-05-08 11:56:48 +02:00
|
|
|
# These files should be checked out as is
|
|
|
|
*.result -text -whitespace
|
2015-06-03 19:42:34 +02:00
|
|
|
*.dat -text -whitespace
|
2015-05-08 16:09:45 +02:00
|
|
|
|
2015-05-08 11:56:48 +02:00
|
|
|
storage/connect/mysql-test/connect/std_data/*.txt -text
|
2015-07-28 17:56:11 +02:00
|
|
|
pcre/testdata/greppatN4 -text
|
2015-03-16 17:37:00 +01:00
|
|
|
|
|
|
|
# Denote all files that are truly binary and should not be modified.
|
|
|
|
*.png binary
|
|
|
|
*.jpg binary
|
2015-06-04 16:51:30 +02:00
|
|
|
*.frm binary
|
|
|
|
*.MYD binary
|
|
|
|
*.MYI binary
|
2016-06-28 22:12:50 +02:00
|
|
|
*.class binary
|
2018-04-24 20:28:31 +02:00
|
|
|
*.jar binary
|
2015-03-16 17:37:00 +01:00
|
|
|
|
2015-02-10 12:26:21 +01:00
|
|
|
*.c diff=cpp
|
|
|
|
*.h diff=cpp
|
|
|
|
*.cc diff=cpp
|
2022-01-13 17:27:28 +01:00
|
|
|
*.inl diff=cpp
|
2015-02-10 12:26:21 +01:00
|
|
|
*.cpp diff=cpp
|
2016-04-27 12:57:27 +02:00
|
|
|
*.java diff=cpp
|
2021-01-15 07:54:27 +01:00
|
|
|
|
|
|
|
# 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
|