diff --git a/src/init.rs b/src/init.rs index cead23077b8ba0de53594cfdc3e5a8d2d46c574b..7ac789fa2e1ad74f55e3bf9cc1c87340b0a41818 100644 --- a/src/init.rs +++ b/src/init.rs @@ -73,9 +73,10 @@ fn init_repository() { /// # Arguments: /// * `hooks`: a boolean indicating wether or not to create hooks /// * `compression`: The compression used automatically after each commit. This parameter is only used if hooks is true. -pub fn init_and_hook(hooks: bool, compression: &str) { +/// * `mode`: The checkout mode used by gblk automatically after a git checkout: soft or hard. +pub fn init_and_hook(hooks: bool, compression: &str, mode: &str) { init_repository(); if hooks { - create_hooks::create_hooks(compression); + create_hooks::create_hooks(compression, mode); } } \ No newline at end of file