mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-02 02:56:52 +00:00
Fix readme to correctly reflect no-commit-to-branch args
This commit is contained in:
parent
e018adf3ac
commit
023851e657
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- `name-tests-test` - Assert that files in tests/ end in `_test.py`.
|
||||
- Use `args: ['--django']` to match `test*.py` instead.
|
||||
- `no-commit-to-branch` - Protect specific branches from direct checkins.
|
||||
- Use `args: [--branch <branch>]` to set the branch. `master` is the
|
||||
- Use `args: ['staging', 'master']` to set the branch. `master` is the
|
||||
default if no argument is set.
|
||||
- `-b` / `--branch` may be specified multiple times to protect multiple
|
||||
branches.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue