From 35cedc888379d0279b1c725388c25d02f4ecb691 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 20 Aug 2017 21:07:07 +0200 Subject: Initial commit, added some main files for hooks --- README.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.org (limited to 'README.org') diff --git a/README.org b/README.org new file mode 100644 index 0000000..d8fb088 --- /dev/null +++ b/README.org @@ -0,0 +1,13 @@ +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. + +#+BEGIN_SRC sh +cargo build + +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 +#+END_SRC + -- cgit v1.2.3