diff options
author | Brad King <brad.king@kitware.com> | 2016-06-30 20:13:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-30 20:13:46 (GMT) |
commit | 48680ade091af958ec3c9f5e95e2cc0bfa12fb6e (patch) | |
tree | 32a3c8dca552d97d82df9f9d0d8370cf51b43f0a | |
parent | 3e4c2334b894465f1d5af385dcdea3969b089db2 (diff) | |
parent | a77d597b86d2632372ab16963c075858d1a292fd (diff) | |
download | CMake-48680ade091af958ec3c9f5e95e2cc0bfa12fb6e.zip CMake-48680ade091af958ec3c9f5e95e2cc0bfa12fb6e.tar.gz CMake-48680ade091af958ec3c9f5e95e2cc0bfa12fb6e.tar.bz2 |
Merge branch 'clang-format-script' into release
-rwxr-xr-x | Utilities/Scripts/clang-format.bash | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Utilities/Scripts/clang-format.bash b/Utilities/Scripts/clang-format.bash index 760a8d4..a9ef62b 100755 --- a/Utilities/Scripts/clang-format.bash +++ b/Utilities/Scripts/clang-format.bash @@ -36,15 +36,19 @@ Example to format locally modified files staged for commit: Utilities/Scripts/clang-format.bash --cached -Example to format the current topic: +Example to format files modified by the most recent commit: - git filter-branch \ - --tree-filter "Utilities/Scripts/clang-format.bash --amend" \ - master.. + Utilities/Scripts/clang-format.bash --amend Example to format all files: Utilities/Scripts/clang-format.bash --tracked + +Example to format the current topic: + + git filter-branch \ + --tree-filter "Utilities/Scripts/clang-format.bash --tracked" \ + master.. ' die() { |