Crates.io | set-git-hooks-dir |
lib.rs | set-git-hooks-dir |
version | 1.0.2 |
source | src |
created_at | 2024-06-21 16:19:25.746749 |
updated_at | 2024-07-05 15:56:41.575662 |
description | Deadly simple Git hooks directory setup tool |
homepage | |
repository | |
max_upload_size | |
id | 1279680 |
size | 6,198 |
set-git-hooks-dir
crateSee https://github.com/rhysd/set-git-hooks-dir#readme for the 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");
}
This crate is distributed under the MIT license.