mix git_hoox.install (GitHoox v0.5.0)

Copy Markdown View Source

Install git_hoox shims.

mix git_hoox.install              # refuse if user hook exists
mix git_hoox.install --force      # backup + overwrite shims (and config)
mix git_hoox.install --dry-run    # plan only, write nothing
mix git_hoox.install --scaffold   # also write a starter .git_hoox.exs

Detects core.hooksPath and worktrees via git rev-parse --git-path hooks.

When .git_hoox.exs sets auto_deps_get: true, each shim first runs mix deps.get if the lock is out of date, so a stale mix.lock no longer fails the hook with "Unchecked dependencies". Re-run this task after changing the flag to regenerate the shims.