Skip to content

Instantly share code, notes, and snippets.

say -v Bad oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
@threedaymonk
threedaymonk / git.rb
Created October 13, 2010 12:30
Try and commit trailing spaces now, punk!
# Sneak in git commit hooks. Even if people don't run tests, they're likely to run this.
unless Rails.env == "production"
hook = "#{Rails.root}/.git/hooks/pre-commit"
script = <<'END'
#!/usr/bin/env ruby
#
# Reject commits that would introduce trailing spaces.