Patchwork D7683: examples: add an example configuration for go source files

login
register
mail settings
Submitter phabricator
Date Dec. 17, 2019, 8:23 p.m.
Message ID <a7f71466369655179860ceacdac45242@localhost.localdomain>
Download mbox | patch
Permalink /patch/43943/
State Not Applicable
Headers show

Comments

phabricator - Dec. 17, 2019, 8:23 p.m.
Closed by commit rHGb78795c2a294: examples: add an example configuration for go source files (authored by durin42).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7683?vs=18827&id=18832

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

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

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
--- a/contrib/examples/fix.hgrc
+++ b/contrib/examples/fix.hgrc
@@ -7,3 +7,8 @@ 
 
 black:command = black --config=black.toml -
 black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"
+
+# Mercurial doesn't have any Go code, but if we did this is how we
+# would configure `hg fix` for Go:
+go:command = gofmt
+go:pattern = set:**.go