/rust_git_hooks

Playing with Rust as an option for writing git hooks

Primary LanguageRustMIT LicenseMIT

Playing with Rust as an option for writing git hooks.

To try the hooks, do the following to compile the hooks and symlink them into your git hooks folder.

cargo build

ln -s $PWD/target/debug/pre-commit .git/hooks/pre-commit
ln -s $PWD/target/debug/prepare-commit-msg .git/hooks/prepare-commit-msg
ln -s $PWD/target/debug/commit-msg .git/hooks/commit-msg
ln -s $PWD/target/debug/pre-push .git/hooks/pre-push

License

MIT Licensed. See LICENSE file for details.