Skip to content

Instantly share code, notes, and snippets.

@mgreiner
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgreiner/9533001 to your computer and use it in GitHub Desktop.
Save mgreiner/9533001 to your computer and use it in GitHub Desktop.
Pre-commit hook to prevent committing anything that references Reveal.
#!/bin/sh
if git diff --cached | grep "Reveal\.\(app\|framework\)" > /dev/null
then
echo "Your project contains references to Reveal. Remove the references before commiting."
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment