#!/usr/bin/env bash
# github-guard hook: sendemail-validate
#
# Fires:    In `git send-email`, to validate a patch before it is sent.
# Use for:  Checking outgoing patches before they leave.
# Blocking: yes (non-zero stops the send)
#
# Dispatcher: runs every executable script in  .githooks/sendemail-validate.d/  in lexical
# order. Add behaviour by dropping a guard script there; remove it by deleting
# the file (or `chmod -x`). No sendemail-validate.d/ (or an empty one) = no-op. Managed by
# github-guard — edit guards in the .d/ dir, not this file.
d=$(cd "$(dirname "$0")" && pwd)
exec "$d/lib/run-guards.sh" "$(basename "$0")" "$@"
