diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2017-08-20 21:07:07 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2017-08-20 21:14:57 +0200 |
commit | 35cedc888379d0279b1c725388c25d02f4ecb691 (patch) | |
tree | 183541db26a06ab2fc5f3436592f46de4d7a1666 /README.org | |
parent | 44ac404d6a1f537ba3da27f9cc8f3908396d931f (diff) |
Initial commit, added some main files for hooks
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 13 |
1 files changed, 13 insertions, 0 deletions
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 + |