Files
fish-config/scripts/agents-tools/hooks/prepare-commit-msg
T

8 lines
363 B
Bash
Executable File

#!/usr/bin/env bash
# agents-tools-version: 1
# Delegates to the repo's committed .agents-tools/version-bump. Guarded so a
# missing script or failed rev-parse never blocks the commit (always exit 0).
root="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0
[ -x "$root/.agents-tools/version-bump" ] && "$root/.agents-tools/version-bump" prepmsg "$1"
exit 0