Skip to content

Commit b84c9f6

Browse files
authored
Merge pull request #1078 from pre-commit/and-config-too
also document --config for hook-impl
2 parents c0f88ab + 54cd70d commit b84c9f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sections/advanced.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ git config set hook.pre-commit.pre-commit.command 'pre-commit hook-impl --hook-t
477477

478478
`pre-commit hook-impl` is a "hidden" implementation command with these options:
479479
- `--hook-type ...`: the [hook type](#supported-git-hooks) to use
480+
- `--config ...`: (optional) path to `.pre-commit-config.yaml`
480481
- `--skip-on-missing-config`: silently pass when a config is missing
481482

482483
some interesting applications of this:

0 commit comments

Comments
 (0)