H, I concocted a git prepare-commit-msg hook.
Please rant about my evening hobby after testing and reading <script> DB=`git status | grep -e "modified.*\.sql$" -e "new file.*\.sql$"` OLD_MSG=`cat $1` if [ -z "$DB" ] then MSG="[DB-CHANGE] $OLD_MSG" else MSG="$OLD_MSG" fi echo "$MSG" >$1 </script> regards, -- Daan