mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 20:46:37 +08:00
clang-format.bash: Fix filter-branch example documentation
Inside `git filter-branch --tree-filter` we must format all tracked files because formatting of the tree for each commit is independent from earlier commits.
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user