from Hacker News

Find a needle in a haystack with Git bisect

by orr94 on 11/15/24, 8:27 PM with 4 comments

  • by lang4d on 11/16/24, 2:31 PM

    `git bisect run ...` Has been really nice for me when trying to find which which commit broke long running commands. It'll run atomically using the return code for good/bad determination.
  • by extraduder_ire on 11/16/24, 3:09 AM

    I remember learning about this a few years ago, and it felt like both a very obvious feature to have and a superpower at the same time.

    Just a few easy steps between "I can test for this bug and don't know where it is in hundreds of thousands of lines" and "Here's the three line change that created the bug and context about them".

  • by strangelove026 on 11/16/24, 2:18 PM

    Pretty cool. Knew this existed but not really how it is a solution.