[−][src]Function codebase::hook::install
pub fn install<A: AsRef<Path>, B: AsRef<Path>>(
hook_id: &str,
repo_path: A,
config_dir: B
) -> Result<()>
Install given hook into given repository Please note that at the moment, only pre-commit hook are allowed
Arguments
hook_id
- the Hook IDrepo_path
- the Git repository pathconfig_dir
- path to the .codebase-config directory