D6872: contrib: add new examples area and start it out with a config for `hg fix`

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Sep 23 19:42:13 UTC 2019


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This is the configuration contributors should use for our C/C++
  code. I expect to expand this file as we get more automated formatter
  oversight.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6872

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS

diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
new file mode 100644
--- /dev/null
+++ b/contrib/examples/fix.hgrc
@@ -0,0 +1,3 @@
+[fix]
+clang-format:command = clang-format --style file -i
+clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list