#!/usr/bin/env bash
# github-guard hook: pre-auto-gc
#
# Fires:    Before an automatic `git gc` runs.
# Use for:  Deferring gc when it would be inconvenient.
# Blocking: yes (non-zero skips gc this time)
#
# Dispatcher: runs every executable script in  .githooks/pre-auto-gc.d/  in lexical
# order. Add behaviour by dropping a guard script there; remove it by deleting
# the file (or `chmod -x`). No pre-auto-gc.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")" "$@"
