• ZweiEuro@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    1 year ago
    Git bisect
    

    Is goddamn amazing! I had a very large multi-branch project that somewhere somehow had some crashing bug. Instead of searching through 5 or so branches with 20 something large commits for each, I bisected like 7 times and it told me exactly where to bug was introduced.

    Highly recommended

    • lysdexic@programming.devOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 year ago

      Highly recommended

      I agree. Once we get a hang of the value that bisect brings, one unintended consequence is that we start to value atomic commits a whole lot more. There is nothing more annoying than bisecting a bug and suddenly stumbling upon a commit that does it all: updates dependencies, touches everything under the sun, does cleanup commits for unrelated files, etc. Yuck.

      • ZweiEuro@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Exactly! My case was such a case actually. But it further shows that bisect is a great tool that benefits from good practice.