#!/bin/sh
git-diff-index -p -M --cached HEAD -- | grep '^+' | grep '<?' | grep -v '<?php' | grep -v '<?=' && echo "Blocking commit because PHP short_tag detected in patch" && exit 1
exit 0
