#!/bin/sh
set -eu
DIFF_PATH=$1
DIFF=$(git status --porcelain -- $DIFF_PATH)
if [ "$DIFF" ]; then
echo
echo "These files were changed:"
echo $DIFF
exit 1
else
echo "$DIFF_PATH is correct"
fi;