diff options
author | Daniel Jasper <djasper@google.com> | 2014-05-14 09:36:11 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-05-14 09:36:11 +0000 |
commit | 2e8600c02b909d78cc57d5a1bc3754469d30c378 (patch) | |
tree | d89c4452120c119ad5dc0e0158c9b1b0642798a8 /clang/tools/clang-format/clang-format-diff.py | |
parent | 17605d396118f3066a0bd4dfd128b7a8893f8b94 (diff) | |
download | bcm5719-llvm-2e8600c02b909d78cc57d5a1bc3754469d30c378.tar.gz bcm5719-llvm-2e8600c02b909d78cc57d5a1bc3754469d30c378.zip |
clang-format: Add clang-format-diff usage examples for SVN.
llvm-svn: 208766
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
-rwxr-xr-x | clang/tools/clang-format/clang-format-diff.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py index 376257b638d..d6d0d44a06b 100755 --- a/clang/tools/clang-format/clang-format-diff.py +++ b/clang/tools/clang-format/clang-format-diff.py @@ -15,9 +15,10 @@ ClangFormat Diff Reformatter This script reads input from a unified diff and reformats all the changed lines. This is useful to reformat all the lines touched by a specific patch. -Example usage for git users: +Example usage for git/svn users: git diff -U0 HEAD^ | clang-format-diff.py -p1 -i + svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i """ |