mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Updated README docs
Added hook to hook list in README documentation
This commit is contained in:
parent
912f1a5f41
commit
a3aa3be552
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -198,6 +198,20 @@ Trims trailing whitespace.
|
|||
- By default, this hook trims all whitespace from the ends of lines.
|
||||
To specify a custom set of characters to trim instead, use `args: [--chars,"<chars to trim>"]`.
|
||||
|
||||
|
||||
#### `prepare-commit-msg`
|
||||
Allows for using a jinja2 template for formatting your commit message.
|
||||
You can configure this with the following commandline options:
|
||||
- `-t` / `--template ` - absolute path to the template. Default implementations exist
|
||||
for right away usage. Default value: absolute path to bundled `prepare_commit_msg_append.j2` file
|
||||
- `-b` / `--branch` - may be specified multiple times to exclude branches
|
||||
from formatting the commit message. Think of it as a black list feature.
|
||||
Default value: `main, master`
|
||||
- `-p` / `--pattern` - may be specified multiple times to include branches
|
||||
for formatting the commit message. Think of it as a white list feature.
|
||||
Default value: `(?<=feature/).*`
|
||||
|
||||
|
||||
### Deprecated / replaced hooks
|
||||
|
||||
- `check-byte-order-marker`: instead use fix-byte-order-marker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue