llvm-project/clang/tools/clang-format
Stephen Hines 171244fb7a clang-format: Use git-ls-tree to get file mode in diff mode
Summary:
If a file has been renamed/deleted from the filesystem and --diff mode
with two commits is active, attempting to get the file's mode will fail.
This change uses git-ls-tree instead to get the correct permissions for
the given revision.

Patch by Luis Hector Chavez!

Reviewers: djasper, lodato

Subscribers: srhines, cfe-commits

Differential Revision: https://reviews.llvm.org/D26287

llvm-svn: 286212
2016-11-08 05:50:14 +00:00
..
fuzzer [libFuzzer] make LLVMFuzzerTestOneInput (the fuzzer target function) return int instead of void. (following llvm r249214) 2015-10-02 23:34:37 +00:00
CMakeLists.txt [CMake] Add install-clang-format target by migrating to add_clang_tool 2016-02-23 20:33:15 +00:00
ClangFormat.cpp Make clang-format remove duplicate headers when sorting #includes. 2016-08-10 09:32:23 +00:00
clang-format-bbedit.applescript
clang-format-diff.py clang-format-diff: Replace hard-code default for clang-format binary with flag. 2016-01-20 18:55:57 +00:00
clang-format-sublime.py clang-format: Enable #include sorting by default. 2015-11-16 12:38:56 +00:00
clang-format.el Minor cleanups in clang-format.el. 2016-10-04 09:53:04 +00:00
clang-format.py Attempt to make clang-format.py python 3 - compatible. 2016-10-27 15:15:23 +00:00
git-clang-format clang-format: Use git-ls-tree to get file mode in diff mode 2016-11-08 05:50:14 +00:00