diff --git a/.gitattributes b/.gitattributes index a16d741a7e7..48ddf2f02d1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,5 +13,7 @@ test/tools/llvm-strings/Inputs/numbers binary test/MC/AsmParser/incbin_abcd binary test/YAMLParser/spec-09-02.test binary -# Windows line ending test -test/MC/AsmParser/preserve-comments-crlf.s text eol=crlf +# This file must have CRLF line endings, therefore git should treat it as +# binary and not autoconvert line endings (for example, when core.autocrlf is +# on). +test/MC/AsmParser/preserve-comments-crlf.s binary