by luckydude · 16y ago · 0 comments
Did I miss something exciting here?
I figured it'd probably help someone out there, which is why I submitted it to HN.
I wrote up a bunch of different ones I used last year on a blog entry: http://benjamin-meyer.blogspot.com/2008/10/git-hooks.html
Think of it as the next level of unit testing. Have some bash scripts that you occasionally put an error in? add a bash -n hook on bash files to prevent mistakes. In the Arora repository there have been probably a dozen commits total that broke the build on one of the platforms. How many build breakage commits do you have in your repo?
Speaking of this, the ruby on rails guys seems to be really for tests, but to run a test (even the hello world return true one) takes several seconds... how do I improve this to take ms?