Skip to main content

ensure_hooks

Function ensure_hooks 

Source
pub fn ensure_hooks(chain: bool) -> Outcome
Expand description

Install the global Git hooks, unless git is absent or the slot belongs to someone else.

chain is auto_hooks_chain: with it on, a slot that belongs to husky is not a reason to skip, because dev-prune can install in front and forward every hook back.