belel-protocol / hooks /prepare-commit-msg
TTOPM's picture
Upload 4 files
5b1a270 verified
raw
history blame contribute delete
409 Bytes
#!/usr/bin/env bash
set -euo pipefail
BASE="belel-justice-covenant"
# If remembrance/covenant files are being committed, append a gentle note.
if git diff --cached --name-only | grep -E "^$BASE/(remembrance_archive|JUSTICE_COVENANT_PROOF\.txt|eternal_memory_manifest\.yml)"; then
{
echo ""
echo "[note] Consider evolving snapshot: python $BASE/tools/generate_checksums.py --evolve"
} >> "$1"
fi