Spicy Comic #3 — Git Bisect
We all hate searching for the cause of a nasty regression. Git history to the rescue!
We all hate searching for the cause of a nasty regression. There’s no doubt about it. It is time-consuming, frustrating, and it stops you from doing what excites you.
That’s when clean git history comes into play.
Instead of hunting the bug by inspecting or debugging the code, you could find the git commit which introduced the regression. More often than not, it will be obvious why it happened, and what should you do to fix it.
If you know of one good revision and have encountered a bad one, then somewhere in between those two lies the commit which introduced the regression.
Git bisect helps you do the binary search between these two by checking out revisions and asking you to verify if it’s good or bad one.
That’s log(n) of builds, where n is the number of commits between initial good and bad.
For more, consult git-bisect

Check out the previous issue.
Related Insights
Insight
Spicy Comic #4
Dive into the humorous side of tech with Spicy Comic #4! Experience the reality of programming conferences and pick up a practical trick for using git bisect.
Read More
Insight
Spicy Comic #2
Take a break from the backlog with Spicy Comic #2: The Ball! We explore the lighter side of digital product development and office culture. Don't drop the ball—read it now!
Read More
Insight
Spicy Comic #8 - Scala code.. you know that feeling..
We love Scala, but revisiting a "masterpiece" from a year ago to change one line? The struggle is real. Check out Spicy Comic #8 for a relatable laugh about legacy code.
Read More
Insight
Spicy Comic #10 - Code Reuse
Is code reuse the holy grail of efficiency or a recipe for disaster? Have a laugh at the developer's dilemma in our latest Spicy Comic. Don't reinvent the wheel!
Read MoreReady to build something amazing?
Let's discuss how we can help transform your vision into reality.