Thursday, November 5, 2009

# simple git pre-commit hook to prevent checkins of stuff marked @NOCHECKIN
if test "$(git diff --cached | grep ^\+.*@NOCHECKIN)"
then
echo "@NOCHECKIN detected"
exit 1
fi

No comments:

Post a Comment