9 releases (breaking)
| 0.7.0 | Mar 21, 2026 |
|---|---|
| 0.6.0 | Dec 14, 2025 |
| 0.5.0 | May 26, 2025 |
| 0.4.0 | Sep 30, 2024 |
| 0.1.0 | Dec 7, 2023 |
#123 in Testing
11,874 downloads per month
Used in 5 crates
(2 directly)
39KB
1K
SLoC
git2-rs addon supporting git hooks
we look for hooks in the following locations:
- whatever
config.hooksPathpoints to .git/hooks/- whatever list of paths provided as
other_paths(in order)
most basic hook is: hooks_pre_commit. see also other hooks_* functions.
create_hook is useful to create git hooks from code (unittest make heavy usage of it)
git2-hooks
adds git hook functionality on top of git2-rs
todo
- unittest coverage symlinks from
.git/hooks/<hook>->X - unittest coverage
~expansion insidecore.hooksPath
Dependencies
~12MB
~267K SLoC