2 releases (1 stable)
1.0.2 | Jul 5, 2024 |
---|---|
1.0.0 |
|
0.0.0 | Jun 21, 2024 |
#8 in #pre-commit
6KB
79 lines
set-git-hooks-dir
crate
Usage
See https://github.com/rhysd/set-git-hooks-dir#readme for the usage.
Advanced usage
If you want to configure the Git hooks in your own build script, it is still possible to disable the automatic setup by disabling the crate feature.
Install this package as a build dependency instead of dev dependency.
cargo add set-git-hooks-dir --build --no-default-features
Then use set_git_hooks_dir::setup
function in your build.rs
.
fn main() {
#[cfg(debug_assertions)]
let _ = set_git_hooks_dir::setup(".git-hooks");
}
License
This crate is distributed under the MIT license.
lib.rs
:
set-git-hooks-dir is a deadly simple crate to manage your Git hooks automatically. See the following document for the usage: