[all-commits] [llvm/llvm-project] ac5f7b: Move test/.gitattributes to clang-tools-extra/test

Aaron Puchert via All-commits all-commits at lists.llvm.org
Sun Apr 24 13:43:04 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac5f7be6a8688955a282becf00eebc542238a86b
  Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
  Date:   2022-04-24 (Sun, 24 Apr 2022)

  Changed paths:
    A clang-tools-extra/test/.gitattributes
    R test/.gitattributes

  Log Message:
  Move test/.gitattributes to clang-tools-extra/test

It was probably accidentally added there, see the discussion on change
D97625. It is certainly without effect, to quote gitattributes(5):

    When deciding what attributes are assigned to a path, Git consults
    [...], `.gitattributes` file in the same directory as the path in
    question, and its parent directories up to the toplevel of the work
    tree [...]

Running `git check-attr -a` on the files in question shows that now the
settings are indeed effective whereas before they were not.

Lastly, lit ignores the file like any dotfile, see getTestsInDirectory
of FileBasedTest in llvm/utils/lit/lit/formats/base.py. This can be
verified with `llvm-lit --show-tests clang-tools-extra/test`.

More information about the All-commits mailing list