Skip to content

Instantly share code, notes, and snippets.

@rares
Created March 4, 2011 21:21
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 rares/855726 to your computer and use it in GitHub Desktop.
Save rares/855726 to your computer and use it in GitHub Desktop.
pre-commit syntax hook
#!/bin/sh
exec git diff-index --name-only --cached HEAD -- | egrep -e "\.e?rb$" | xargs -t -n 1 -P 2 /usr/bin/env ruby -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment