summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-01 13:12:43 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-07-01 13:12:43 (GMT)
commit4c476cc9b2441f7cf36fd87c7c7338c373905678 (patch)
treea7b96cf42a948750ad7fc6f671d89ea18555d6f2 /Utilities
parent6e55605db199a4be4d3159c92c40a5e62b880fd5 (diff)
parenta77d597b86d2632372ab16963c075858d1a292fd (diff)
downloadCMake-4c476cc9b2441f7cf36fd87c7c7338c373905678.zip
CMake-4c476cc9b2441f7cf36fd87c7c7338c373905678.tar.gz
CMake-4c476cc9b2441f7cf36fd87c7c7338c373905678.tar.bz2
Merge topic 'clang-format-script'
a77d597b clang-format.bash: Fix filter-branch example documentation
Diffstat (limited to 'Utilities')
-rwxr-xr-xUtilities/Scripts/clang-format.bash12
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() {