mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
Clarify default behaviour in README for no-commit-to-branch
This commit is contained in:
parent
7b959d140f
commit
6568414fc5
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- Use `args: ['--django']` to match `test*.py` instead.
|
||||
- `no-commit-to-branch` - Protect specific branches from direct checkins.
|
||||
- Use `args: [--branch, staging, --branch, master]` to set the branch.
|
||||
`master` is the default if no argument is set.
|
||||
`master` is the default if no branch argument is set.
|
||||
- `-b` / `--branch` may be specified multiple times to protect multiple
|
||||
branches.
|
||||
- `-p` / `--pattern` can be used to protect branches that match a supplied regex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue