# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1558377226 14400
#      Mon May 20 14:33:46 2019 -0400
# Node ID 5dfb57af1148c4c5dcdad02b3fe4cd71b438aa6c
# Parent  be0d54cce8f4eb0865984571a0eed4e40e6eb411
contrib: add new examples area and start it out with a config for `hg fix`

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.

Differential Revision: https://phab.mercurial-scm.org/D6872

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"