Use `-text` git attribute instead of `text eol=...`
authorMichael Forster <forster@google.com>
Thu, 28 Apr 2022 10:54:49 +0000 (12:54 +0200)
committerMichael Forster <forster@google.com>
Thu, 28 Apr 2022 12:27:29 +0000 (14:27 +0200)
commit4aba5fa774821279c2e2e26dd6ed6e1c6a151044
tree9933de3f0fb6cbac8378d4c7123adca672499c2e
parentbbffece3835d57ec09a1b62071ee8f4b17dd3c27
Use `-text` git attribute instead of `text eol=...`

These automatic conversions lead to issues in various workflows, and all
we want here are files that retain their line endings under all
circumstances. `-text` captures that perfectly well and leads to fewer
issues.

It is preferable to `binary`, because with `-text` we still get textual
diffs.

Differential Revision: https://reviews.llvm.org/D124606
clang-tools-extra/test/.gitattributes
clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/crlf.cpp
clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/crlf.cpp.expected