зеркало из https://github.com/mozilla/gecko-dev.git
fbede0d83d
This adds pre-push and pre-commit hooks for both hg and git. All four possibilities are implemented in the same file. To enable a pre-push hg hook, add the following to hgrc: [hooks] pre-push.lint = python:/path/to/gecko/tools/lint/hooks.py:hg To enable a pre-commit hg hook, add the following to hgrc: [hooks] pretxncommit.lint = python:/path/to/gecko/tools/lint/hooks.py:hg To enable a pre-push git hook, run the following command: $ ln -s /path/to/gecko/tools/lint/hooks.py .git/hooks/pre-push To enable a pre-commit git hook, run the following command: $ ln -s /path/to/gecko/tools/lint/hooks.py .git/hooks/pre-commit MozReview-Commit-ID: DUxCKN2fiag --HG-- extra : rebase_source : 67c97a3fd8adc50d6bb3c488345077065b63de7d |
||
---|---|---|
.. | ||
docs | ||
eslint | ||
flake8_ | ||
tox | ||
wpt | ||
eslint.yml | ||
flake8.yml | ||
hooks.py | ||
mach_commands.py | ||
wpt.yml | ||
wpt_manifest.yml |