When you are working on a huge project, you may discover bugs in the code that prevent you from proceeding any further in your development. How to ...
For further actions, you may consider blocking this person and/or reporting abuse
I don't understand: how does git bisect check if a commit is good or bad? Does have an integration with unit tests?
There's no integration. It would be up to you to evaluate if a commit is good or bad by either running a test, starting the app locally, or playing with it on repl/console. Git bisect reduces the number of commits you would have to go through with binary search.
You can also use
git bisect run
to have Git run your tests - that way if your test suite takes a while, you can leave and make yourself a sandwich or something. When you get back, Git will have done all the work for you!Well this change everything. Thanks!
Could you please show a debugging session where this helps find the bug? As is I don't think I get the workflow with these tools
I sometimes wish that there was a way to do this bisection search faster. It's really a painful process, yet sometimes it cannot be avoided.
I haven't used it in a while, but I wrote a tool called git-pisect that leverages multiple cores to converge on the offending commit: hoelz.ro/blog/git-pisect
Let me know if it works for you!
I'll keep that in mind, thanks!
There are two similar commit hashes in the bisect example - 95d69a1, so it's not clear which one will get tagged as good.
Awesome.