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

login
register
mail settings
Submitter phabricator
Date Sept. 23, 2019, 7:42 p.m.
Message ID <differential-rev-PHID-DREV-gvnk4zqebhc2awr6uauu-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41741/
State Superseded
Headers show

Comments

phabricator - Sept. 23, 2019, 7:42 p.m.
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




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

Patch

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"