Show Navigation
Conversation
Notices
-
Random git awesomeness: git-bisect
Something in your versioned project suddenly broke and you have no specific idea when the breaking change was introduced? Fear not, here's git-bisect!
This helpful tool checks out a revision between the current branch and the provided last known working revision. It lets you test for the faulty behavior, then tell it whether it was working or not at this point in time. Git will then check out a new revision between two new boundaries depending on the previous input. After about 2log(N) steps where N is the total number of commits between the current branch and the last known working revision, it will then present you with the first commit where it all went down.
This tool is especially useful in open source projects with many moving parts and few automatic regression tests. Pro Tip: you can use the date the faulty behavior was first reported to cull down the number of revisions Git will have to wade through, although the binary search is pretty well-suited to big datasets.
Thanks to @Michael Vogel for the discovery! https://git-scm.com/docs/git-bisect #opensource #versioning #git
-
I heard about it from @Tobias
-
Just passing along the wisdom of Master @Fabio 🎄
-
Thanks @Fabio 🎄 !