From 7747c87a662ce86981b066f22b33ed65bab37ce7 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Wed, 14 May 2014 09:36:11 +0000 Subject: clang-format: Add clang-format-diff usage examples for SVN. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208766 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-format/clang-format-diff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/clang-format') diff --git a/tools/clang-format/clang-format-diff.py b/tools/clang-format/clang-format-diff.py index 376257b638..d6d0d44a06 100755 --- a/tools/clang-format/clang-format-diff.py +++ b/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 """ -- cgit v1.2.3