- id: blockwatch
name: blockwatch
description: Validate <block> rules on staged changes (pipes the staged diff into blockwatch).
entry: bash -c 'set -o pipefail; git diff --cached --patch --unified=0 | blockwatch --diff --only-changed'
language: rust
pass_filenames: false
stages: [ pre-commit ]
- id: blockwatch-commit-msg
name: blockwatch (commit-msg)
description: Validate <block> rules on staged changes, reading Blockwatch-suppress trailers from the commit message.
entry: bash -c 'set -o pipefail; git diff --cached --patch --unified=0 | blockwatch --diff --only-changed --suppress-from "$1"' --
language: rust
pass_filenames: true
stages: [ commit-msg ]