summaryrefslogtreecommitdiff
path: root/src/bin/pre-push.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pre-push.rs')
-rw-r--r--src/bin/pre-push.rs13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/bin/pre-push.rs b/src/bin/pre-push.rs
index 41f3bbb..e34586b 100644
--- a/src/bin/pre-push.rs
+++ b/src/bin/pre-push.rs
@@ -1,14 +1,9 @@
+extern crate rust_git_hooks;
+use rust_git_hooks::*;
+
use std::env;
use std::io::{stdin, BufRead};
fn main() {
- let args: Vec<_> = env::args().skip(1).collect();
- println!("pre-push called with {:?}", args);
-
- println!("BEGIN STDIN for pre-push");
- let stdin = stdin();
- for line in stdin.lock().lines() {
- println!("{:?}", line);
- }
- println!("END STDIN");
+ log();
}