All checks were successful
Build ptprnt / build (push) Successful in 4m15s
Git Hooks
This directory contains git hooks for the ptprnt repository.
Installation
To install the hooks, run:
./hooks/install_hooks.sh
This will copy all hooks from this directory to .git/hooks/ and make them executable.
Available Hooks
pre-commit
The pre-commit hook automatically updates copyright headers in source files before each commit.
What it does:
- Runs
scripts/update_copyright.shto update copyright years in source files - Automatically re-stages any modified files
- Ensures copyright headers are always up-to-date
Requirements:
scripts/update_copyright.shmust exist and be executable
Skipping Hooks
If you need to skip the pre-commit hook for a specific commit (not recommended), use:
git commit --no-verify
Uninstalling
To remove a hook, simply delete it from .git/hooks/:
rm .git/hooks/pre-commit