• lengau@midwest.social
    link
    fedilink
    arrow-up
    5
    ·
    8 months ago

    I love git bisect for complex regressions! If I don’t immediately know where a bug is, I write a regression test and then bisect to find where it was introduced. Knowing exactly where the bug was introduced and being able to look at the diff almost always speeds up finding the bug.

    • robinm@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      8 months ago

      For those who don’t know (I assume you do), you can git bisect run some_command and git will automatically run git bisect until it finds the falty commit. It’s amazing.