diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2017-08-22 21:38:36 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2017-08-22 21:38:36 +0200 |
commit | 0c1e6e18373fde9407ccf287757f1d221469e6d1 (patch) | |
tree | e7d1c0a2e57c13bdacab30f682a4bea26f5cc0ab /src/bin/prepare-commit-msg.rs | |
parent | ce7cc08eeb78ebec41a1a29a18ba80c272d2f0eb (diff) |
master: Added git hook for running cargo before commits
Diffstat (limited to 'src/bin/prepare-commit-msg.rs')
-rw-r--r-- | src/bin/prepare-commit-msg.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/prepare-commit-msg.rs b/src/bin/prepare-commit-msg.rs index 1a34fc2..64ddd65 100644 --- a/src/bin/prepare-commit-msg.rs +++ b/src/bin/prepare-commit-msg.rs @@ -1,6 +1,6 @@ extern crate rust_git_hooks; - use rust_git_hooks::*; + use std::fs::File; use std::io::Write; use std::io::Read; @@ -11,6 +11,7 @@ fn main() { log(); let commit_filename = env::args().nth(1); + let commit_source = env::args().nth(2); let current_branch = get_current_branch(); |