summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2019-01-01 12:32:08 +0000
committerSylvestre Ledru <sylvestre@debian.org>2019-01-01 12:32:08 +0000
commitdce246b32a243c7fa6e7182815806882fe00a5a3 (patch)
tree2f7c5a6b14dbac50a68642be24e608a85fcbde73 /docs
parent4abdc59b18598c47000cdc8560a0dd575bc8197d (diff)
downloadclang-dce246b32a243c7fa6e7182815806882fe00a5a3.tar.gz
clang-format-diff: add an example with hg
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/ClangFormat.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ClangFormat.rst b/docs/ClangFormat.rst
index e9c236735b..f2228c5750 100644
--- a/docs/ClangFormat.rst
+++ b/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