r350191 - clang-format-diff: add an example with hg
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 1 04:32:09 PST 2019
Author: sylvestre
Date: Tue Jan 1 04:32:08 2019
New Revision: 350191
URL: http://llvm.org/viewvc/llvm-project?rev=350191&view=rev
Log:
clang-format-diff: add an example with hg
Modified:
cfe/trunk/docs/ClangFormat.rst
Modified: cfe/trunk/docs/ClangFormat.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangFormat.rst?rev=350191&r1=350190&r2=350191&view=diff
==============================================================================
--- cfe/trunk/docs/ClangFormat.rst (original)
+++ cfe/trunk/docs/ClangFormat.rst Tue Jan 1 04:32:08 2019
@@ -200,6 +200,12 @@ So to reformat all the lines in the late
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
More information about the cfe-commits
mailing list