Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 491 Bytes

README.org

File metadata and controls

17 lines (12 loc) · 491 Bytes

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.