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

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

Comments

phabricator - Dec. 17, 2019, 7:05 p.m.
durin42 updated this revision to Diff 18827.

REPOSITORY
  rHG Mercurial

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

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