mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Removed whitelist and blacklist references Fixes https://github.com/pytorch/pytorch/issues/41753 Pull Request resolved: https://github.com/pytorch/pytorch/pull/41636 Reviewed By: SplitInfinity Differential Revision: D22648632 Pulled By: suo fbshipit-source-id: d22130a7cef96274f3fc73d00b50327dfcae332c
13 lines
397 B
Bash
Executable File
13 lines
397 B
Bash
Executable File
#!/bin/sh
|
|
set -eux
|
|
|
|
# Runs clang-format on allowlisted files.
|
|
# Requires a single argument, which is the <commit> argument to git-clang-format
|
|
|
|
# If you edit this allowlist, please edit the one in clang_format_all.py as well
|
|
find . -type f \
|
|
-path './torch/csrc/jit/*' -or \
|
|
-path './test/cpp/jit/*' -or \
|
|
-path './test/cpp/tensorexpr/*' \
|
|
| xargs tools/git-clang-format --verbose "$1" --
|