Created
December 6, 2010 19:52
-
-
Save ecin/730818 to your computer and use it in GitHub Desktop.
I keep committing without specifying how long the commit took, so...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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