News for hackers. Stuff that matters.
Re:Rails framework upgrades with git-bisect by fragmede on Saturday April 04, 2009 @02:36PM (#546529)
If you're handy with shell scripts, you can do:

  git bisect run my_script
my_script should return 1 if tests failed, or 0 if they passed. Git will then go off and find the commit that broke things.
Re:Rails framework upgrades with git-bisect by nikron on Saturday April 04, 2009 @02:49PM (#546540)
That's pretty cool; I always wondered how to use git bisect.
Re:Rails framework upgrades with git-bisect by mtkd on Saturday April 04, 2009 @07:04PM (#546767)
2 years in to using Git and I'm still learning workflow stepchanges every week.

Scott Chacon touched on this in his SOR talk I think. There will be a vid up for it soon I think.

Re:Rails framework upgrades with git-bisect by ealdwulf on Sunday April 05, 2009 @05:01AM (#547220)
If anyone needs to bisect an intermittent bug, I have written a bayesian version of git bisect. It can be found at: http://github.com/Ealdwulf/bbchop/tree/master
Re:Rails framework upgrades with git-bisect by jballanc on Saturday April 04, 2009 @11:27PM (#547013)
I can personally vouch for the awesomeness of 'git bisect', especially when combined with 'git rebase' to reconstruct trees minus troublesome commits.

Like many tools, I think git bisect's advantage comes from reducing the amount of thinking that you need to do to accomplish a task. Before git bisect I'd often stare at pieces of broken code or poke around in a debugger for hours on end. Now, ~1 hr or so with git bisect and friends, and the job is done...and I get to spend brain cycles thinking about something else.

Re:Rails framework upgrades with git-bisect by tlrobinson on Saturday April 04, 2009 @10:45PM (#546976)
The coolest part of git bisect is the run option: http://tlrobinson.net/blog/2008/10/01/git-bisect-run/

If you can write a shell script that returns 0 when the test passes and 1 when it doesn't, git bisect run will do the tedious part for you.

Re:Rails framework upgrades with git-bisect by sant0sk1 on Saturday April 04, 2009 @03:45PM (#546592)
My brain just gitsploded. More like this, please.