forked from OSchip/llvm-project
clang-format-diff: add an example with hg
llvm-svn: 350191
This commit is contained in:
parent
c5a023b624
commit
84e38ecc5e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue