diff --git a/.gitattributes b/.gitattributes index 666eddc88d..127f879135 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,3 +6,4 @@ *.resi linguist-language=ReScript .yarn/releases/* binary linguist-vendored +tests/dependencies/** linguist-vendored diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e47ecb4414..a304ee9ad6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -51,6 +51,8 @@ git clone --depth 1 https://github.com/rescript-lang/rescript.git This will only consume less than 50MB. +[.gitattributes](.gitattributes) checks out every text file with LF line endings, which the committed snapshots and formatters expect on every platform. It also marks the Yarn release and the copied test dependencies in `tests/dependencies` as vendored, which leaves them out of GitHub's language statistics. + ## Installation ### A. Manual installation diff --git a/tests/dependencies/.gitattributes b/tests/dependencies/.gitattributes deleted file mode 100644 index 36eaad9fbd..0000000000 --- a/tests/dependencies/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* linguist-vendored