#!/bin/sh for FILE in `git diff --name-only --cached`; do grep 'TODO' $FILE 2>&1 >/dev/null if [ $? -eq 0 ]; then echo $FILE ' contains TODO' exit 1 fi done exit