style: make style hook work with pre-qrefresh and update to use new code
authorNathan Binkert <nate@binkert.org>
Thu, 30 Dec 2010 17:53:56 +0000 (12:53 -0500)
committerNathan Binkert <nate@binkert.org>
Thu, 30 Dec 2010 17:53:56 +0000 (12:53 -0500)
commitfe6574ecc07188b39d91a12dde34b1bd2258da02
treecdd661adceb4f935ffccb2b25ae786ba2250d146
parent04f5bb34ce0475a3fee8e3c104413f79668e0ab6
style: make style hook work with pre-qrefresh and update to use new code
clean up the code a little bit while we're at it.

I recommend that everyone adds the pre-qrefresh hook below since it
will make qref run the style hook and not just commit/qpush

[extensions]
style = <m5 path>/util/style.py

[hooks]
pretxncommit.style = python:style.check_whitespace
pre-qrefresh.style = python:style.check_whitespace
SConstruct
util/file_types.py [new file with mode: 0644]
util/style.py