Skip to content

Instantly share code, notes, and snippets.

@ecin
Created December 6, 2010 19:52
Show Gist options
  • Save ecin/730818 to your computer and use it in GitHub Desktop.
Save ecin/730818 to your computer and use it in GitHub Desktop.
I keep committing without specifying how long the commit took, so...
#!/usr/bin/env ruby
commit_msg = File.open(ARGV[0]).read
exit(0) if commit_msg[/f:\d+/]
warn "Missing Freckle time duration in commit message! Aborting commit..."
exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment