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:
Brad King 2016-06-30 15:55:22 -04:00
parent 2f2117e7d4
commit a77d597b86
1 changed files with 8 additions and 4 deletions

View File

@ -36,15 +36,19 @@ Example to format locally modified files staged for commit:
Utilities/Scripts/clang-format.bash --cached 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 \ Utilities/Scripts/clang-format.bash --amend
--tree-filter "Utilities/Scripts/clang-format.bash --amend" \
master..
Example to format all files: Example to format all files:
Utilities/Scripts/clang-format.bash --tracked 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() { die() {