Manuel
git bisect start
git bisect bad # le commit actuel a le bug
git bisect good v1.1.0 # cette version fonctionnait
# tester, puis :
git bisect good # ou git bisect bad (git bisect skip si impossible à tester)
git bisect reset
Automatique
git bisect run python -m pytest -q tests/test_frais.pyLa commande doit renvoyer 0 si c'est bon, autre chose si c'est mauvais. Environ log₂(n) étapes (recherche dichotomique). Ensuite : git show <commit> (explorer l'historique), puis corriger ou revert.