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

login
register
mail settings
Submitter phabricator
Date Jan. 8, 2020, 4:50 p.m.
Message ID <3c1c743591d9e1ae7c9ac338a0c890cc@localhost.localdomain>
Download mbox | patch
Permalink /patch/44182/
State Not Applicable
Headers show

Comments

phabricator - Jan. 8, 2020, 4:50 p.m.
Closed by commit rHG7a16c779a9d0: fix: correct the clang-format example hgrc so that it actually works (authored by spectral).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

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

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, pulkit
Cc: pulkit, 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