set-git-hooks-dir

Crates.ioset-git-hooks-dir
lib.rsset-git-hooks-dir
version1.0.2
sourcesrc
created_at2024-06-21 16:19:25.746749
updated_at2024-07-05 15:56:41.575662
descriptionDeadly simple Git hooks directory setup tool
homepage
repository
max_upload_size
id1279680
size6,198
Linda_pp (rhysd)

documentation

README

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.

Commit count: 0

cargo fmt