git bisect
Binary search genom git-historiken för att hitta vilken commit introducerade en bugg. git bisect start; git bisect bad; git bisect good <hash>.
Git checkar ut mid-point-commit, du testar (manuellt eller via script), märker som good/bad. Itererar tills exakta brott-commiten hittas. Auto-mode: git bisect run ./test.sh — script returnerar 0 (good) eller non-zero (bad), git automatiserar. log(N) iterationer för N commits — 1000 commits = ~10 tester.