Patchwork D7618: fix: correct the clang-format example hgrc so that it actually works

login
register
mail settings
Submitter phabricator
Date Dec. 13, 2019, 12:34 a.m.
Message ID <7bdd0d47f78902fae9970ebc333497d7@localhost.localdomain>
Download mbox | patch
Permalink /patch/43772/
State Not Applicable
Headers show

Comments

phabricator - Dec. 13, 2019, 12:34 a.m.
spectral updated this revision to Diff 18660.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7618?vs=18648&id=18660

BRANCH
  default

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7618/new/

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

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS




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

Patch

diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
--- a/contrib/examples/fix.hgrc
+++ b/contrib/examples/fix.hgrc
@@ -1,6 +1,6 @@ 
 [fix]
-clang-format:command = clang-format --style file -i
-clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"
+clang-format:command = clang-format --style file
+clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist"
 
 rustfmt:command = rustfmt
 rustfmt:pattern = set:**.rs