summaryrefslogtreecommitdiff
path: root/util/style
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2016-03-30 15:36:16 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2016-03-30 15:36:16 +0100
commit5dc1790cf69cb1446facc1052a6b1d3df9fadc6a (patch)
treebe457800036890fac42d4a0dc5103b650054e47a /util/style
parent588ecad91914a861d04dd83d2fea070b3ba4b24b (diff)
downloadgem5-5dc1790cf69cb1446facc1052a6b1d3df9fadc6a.tar.xz
style: Add a style checker that doesn't depend on Mercurial
The current style checker script, hgstyle.py, assumes that it is being run from Mercurial. This means that it depends on the Mercurial Python libraries, which aren't necessarily present if using git. This changeset adds a new style checker script, style.py, that has been designed to be run from the command line. The script has support for detecting which revision control system is used and is able to query both git and Mercurial for changes. This enables the script to operate on modified regions and/or all of the modified files in the repository. Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Curtis Dunham <curtis.dunham@arm.com> Reviewed-by: Steve Reinhardt <steve.reinhardt@amd.com> --HG-- extra : rebase_source : 2b420aff79d190f32557bc8822518cbc5d93e999
Diffstat (limited to 'util/style')
0 files changed, 0 insertions, 0 deletions