clang-format-diff: add an example with hg

llvm-svn: 350191
This commit is contained in:
Sylvestre Ledru 2019-01-01 12:32:08 +00:00
parent c5a023b624
commit 84e38ecc5e
1 changed files with 6 additions and 0 deletions

View File

@ -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