summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-05-14 09:36:11 +0000
committerDaniel Jasper <djasper@google.com>2014-05-14 09:36:11 +0000
commit2e8600c02b909d78cc57d5a1bc3754469d30c378 (patch)
treed89c4452120c119ad5dc0e0158c9b1b0642798a8 /clang/docs
parent17605d396118f3066a0bd4dfd128b7a8893f8b94 (diff)
downloadbcm5719-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/docs')
-rw-r--r--clang/docs/ClangFormat.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst
index 3f8499b8cef..86c5ec5e587 100644
--- a/clang/docs/ClangFormat.rst
+++ b/clang/docs/ClangFormat.rst
@@ -177,5 +177,11 @@ So to reformat all the lines in the latest :program:`git` commit, just do:
git diff -U0 HEAD^ | clang-format-diff.py -i -p1
+In an SVN client, you can do:
+
+.. code-block:: console
+
+ svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i
+
The :option:`-U0` will create a diff without context lines (the script would format
those as well).
OpenPOWER on IntegriCloud