[all-commits] [llvm/llvm-project] 4aba5f: Use `-text` git attribute instead of `text eol=...`

Michael Forster via All-commits all-commits at lists.llvm.org
Thu Apr 28 05:29:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4aba5fa774821279c2e2e26dd6ed6e1c6a151044
      https://github.com/llvm/llvm-project/commit/4aba5fa774821279c2e2e26dd6ed6e1c6a151044
  Author: Michael Forster <forster at google.com>
  Date:   2022-04-28 (Thu, 28 Apr 2022)

  Changed paths:
    M clang-tools-extra/test/.gitattributes
    M clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/crlf.cpp
    M clang-tools-extra/test/clang-apply-replacements/Inputs/crlf/crlf.cpp.expected

  Log Message:
  -----------
  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




More information about the All-commits mailing list