diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2017-08-22 21:23:41 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2017-08-22 21:25:19 +0200 |
commit | ce7cc08eeb78ebec41a1a29a18ba80c272d2f0eb (patch) | |
tree | 622f367aba23968ddb3eb6c7c9650e3d6765b99a /src/bin/prepare-commit-msg.rs | |
parent | c8a40229dabee642d598a9a8f852e33e6a183780 (diff) |
master: Added docs
Diffstat (limited to 'src/bin/prepare-commit-msg.rs')
-rw-r--r-- | src/bin/prepare-commit-msg.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/prepare-commit-msg.rs b/src/bin/prepare-commit-msg.rs index 63edba0..1a34fc2 100644 --- a/src/bin/prepare-commit-msg.rs +++ b/src/bin/prepare-commit-msg.rs @@ -9,10 +9,10 @@ use std::env; fn main() { log(); - - let current_branch = get_current_branch(); + let commit_filename = env::args().nth(1); - + + let current_branch = get_current_branch(); match (current_branch, commit_filename) { (Ok(branch), Some(filename)) => { |