[PATCH] D124606: Use `-text` git attribute instead of `text eol=...'
Michael Forster via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 28 07:31:57 PDT 2022
MForster added a comment.
Well, I tested this on Windows. :-)
forster at Desktop MINGW64 ~/src/llvm-project/clang-tools-extra/test (main)
$ git reset --hard 4aba5fa774821279c2e2e26dd6ed6e1c6a151044 && grep 'crlf.cpp ' .gitattributes && file clang-apply-replacements/Inputs/crlf/crlf.cpp
HEAD is now at 4aba5fa77482 Use `-text` git attribute instead of `text eol=...`
clang-apply-replacements/Inputs/crlf/crlf.cpp -text
clang-apply-replacements/Inputs/crlf/crlf.cpp: ASCII text, with CRLF line terminators
forster at Desktop MINGW64 ~/src/llvm-project/clang-tools-extra/test (main)
$ git reset --hard c9a16e8c3d99173c7525e576d78eed57110d2b08 && grep 'crlf.cpp ' .gitattributes && file clang-apply-replacements/Inputs/crlf/crlf.cpp
HEAD is now at c9a16e8c3d99 Drop '* text=auto' from .gitattributes and normalize
clang-apply-replacements/Inputs/crlf/crlf.cpp text eol=crlf
clang-apply-replacements/Inputs/crlf/crlf.cpp: ASCII text, with CRLF line terminators
forster at Desktop MINGW64 ~/src/llvm-project/clang-tools-extra/test (main)
$ git reset --hard ac5f7be6a8688955a282becf00eebc542238a86b && grep 'crlf.cpp ' .gitattributes && file clang-apply-replacements/Inputs/crlf/crlf.cpp
HEAD is now at ac5f7be6a868 Move test/.gitattributes to clang-tools-extra/test
clang-apply-replacements/Inputs/crlf/crlf.cpp text eol=crlf
clang-apply-replacements/Inputs/crlf/crlf.cpp: ASCII text, with CRLF line terminators
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124606/new/
https://reviews.llvm.org/D124606
More information about the cfe-commits
mailing list