summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2016-09-22 05:52:55 +0000
committerStephen Hines <srhines@google.com>2016-09-22 05:52:55 +0000
commit90ced94b22aac2894a90d68ec33753c361f64f73 (patch)
tree73494a9cc447f505810e67399f6ff188763f4b03 /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp
parenta3174853b7b861d02eadd3d14330ad428fb73124 (diff)
downloadbcm5719-llvm-90ced94b22aac2894a90d68ec33753c361f64f73.tar.gz
bcm5719-llvm-90ced94b22aac2894a90d68ec33753c361f64f73.zip
clang-format: Add an option to git-clang-format to diff between to commits
Summary: When building pre-upload hooks using git-clang-format, it is useful to limit the scope to a diff of two commits (instead of from a commit against the working tree) to allow for less false positives in dependent commits. This change adds the option of specifying two git commits to git-clang-format when using the `--diff` flag, which uses a different strategy to diff (using `git-diff-tree` instead of `git-diff-index`), and runs clang-format against the second commit instead of the working directory. There is a slight backwards-incompatibility introduced with this change: if a filename matches a branch name or other commit-ish, then `git clang-format <commit> <file>` will no longer work as expected; use `git clang-format <commit> -- <file>` instead. Patch by Luis Hector Chavez! Reviewers: djasper, lodato Subscribers: lodato, cfe-commits, srhines Projects: #clang-c Differential Revision: https://reviews.llvm.org/D24319 llvm-svn: 282136
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud