set-git-hooks-dir 1.0.0

Deadly simple Git hooks directory setup tool
Documentation
set-git-hooks-dir-1.0.0 has been yanked.

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.