diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2019-01-01 12:32:08 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2019-01-01 12:32:08 +0000 |
commit | 84e38ecc5e4a676e14116a42c02e5981ecd8fbb7 (patch) | |
tree | c686658275d00acb4e2d50d01df4d897ef2337c6 /clang/docs/ClangFormat.rst | |
parent | c5a023b624850f400a61a41fbd368591950bd45f (diff) | |
download | bcm5719-llvm-84e38ecc5e4a676e14116a42c02e5981ecd8fbb7.tar.gz bcm5719-llvm-84e38ecc5e4a676e14116a42c02e5981ecd8fbb7.zip |
clang-format-diff: add an example with hg
llvm-svn: 350191
Diffstat (limited to 'clang/docs/ClangFormat.rst')
-rw-r--r-- | clang/docs/ClangFormat.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst index e9c236735bb..f2228c57505 100644 --- a/clang/docs/ClangFormat.rst +++ b/clang/docs/ClangFormat.rst @@ -200,6 +200,12 @@ So to reformat all the lines in the latest :program:`git` commit, just do: git diff -U0 --no-color HEAD^ | clang-format-diff.py -i -p1 +With Mercurial/:program:`hg`: + +.. code-block:: console + + hg diff -U0 --color=never | clang-format-diff.py -i -p1 + In an SVN client, you can do: .. code-block:: console |