Add check_path hook

Adds a hook which can be used for preventing commits to paths specified
by regex.
This commit is contained in:
Olli Raula 2020-05-28 16:55:18 +03:00
parent f0bf512dbb
commit ade67be453
5 changed files with 96 additions and 0 deletions

View file

@ -57,6 +57,11 @@ Attempts to load all json files to verify syntax.
#### `check-merge-conflict`
Check for files that contain merge conflict strings.
#### `check-path-edits`
Prevent files in specific paths from being committed.
- Specify path patterns with regex `args: ["--pattern", "^tmp.*"]`.
- Pattern can be specified many times.
#### `check-symlinks`
Checks for symlinks which do not point to anything.