Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.37 KB

File metadata and controls

49 lines (34 loc) · 1.37 KB

Hooks

npm install only

  • npm i -g @vd7/gitty gives plain git commands

  • no hooks ship in the package

  • no shelllock

  • no health-check

  • repo hooks still run if the target repo has core.hooksPath set

Repo with .hooks/

Many repos use gh-template hooks:

  • gitty does not pass --no-verify
  • Pre-commit runs on git commit
  • Pre-push runs on git push

Hook dashboard

When hooks run, gitty prints a pass(🟢)/fail(🔴) summary:

── hooks: pre-commit ──
🟢 - enforce-git-identity- passed
🟢 - check-em-dashes- fixed (em dash -> hyphen)
🟢 - clearmeta- metadata stripped
── hooks: pre-push ──
🟢 - shelllock- passed
🟢 - health-check- all checks passed

Hook block → 🔴, commit/push stops

  • partial holdback does not bypass hook failures

(optional) shelllock

shelllock Touch ID on pre-push when installed + wired into repo's .hooks/pre-push

Partial commit vs hooks

Layer What it does
gitty partial holdback Size/submodule/push-reject paths → see partial-commit.md
Repo hooks Policy gates (identity, venv, health-check, etc)

They are independent:

  • a hook block still aborts whole commit even when partial mode is on