No description
Find a file
Noah Knegt 3a2e1798c2
feat(post-checkout): Add check for submodule status (#7)
Signed-off-by: Noah Knegt <noah.knegt@priva.com>
2026-01-20 13:16:13 +01:00
hooks feat(post-checkout): Add check for submodule status (#7) 2026-01-20 13:16:13 +01:00
.gitignore feat: Add initial hooks 2026-01-16 10:19:53 +01:00
CODEOWNERS chore: Add codeowner foor hooks 2026-01-19 15:44:25 +01:00
hooks-config.example feat: Add initial hooks 2026-01-16 10:19:53 +01:00
LICENSE Initial commit 2026-01-16 08:52:50 +01:00
README.md fix: Update command for locating hooks directory (#6) 2026-01-20 11:50:52 +01:00

Hooks

Installation

Manual

To use the hooks in your repository you need to copy the contents of the hooks directory into the hooks directory of your repository. To find the hooks directory of your repository you can execute the command git rev-parse --git-path hooks. Lastly make sure that the hooks are executable, if now use chmod +x * in the hooks directory or any other equivalent action.

Tool

There is a tool within a repository of tools that can be used to install your hooks directly into the correct location. These tools are publicly hosted on git. Although they lack the instructions, once installed they have a --help options that provides more context.

Usage

To configure the hooks and tools that should be used you need to copy the hooks-config.example to the root directory of your git repo, find it with git rev-parse --show-toplevel, and make sure it is named .hooks-config. You can enable hooks with this config without the need to manually change the actual hooks.

Warning

Only the post-checkout has been fully tested and is working, so please fix any issues you find in the others.