hooks/precommit: Only test rulesets which have changed.
hooks/precommit: Properly test for ruleset changes.