Plan a read-only Git bisect session by validating good and bad commits and estimating binary-search steps.
Plan a read-only Git bisect session by validating good and bad commits and estimating binary-search steps. Git Bisect Helper is a small Python command-line tool built with the standard library. It is designed for local use and keeps its behavior explicit.
- ✨ 🔎 Verify that both refs resolve to commits.
- ✨ 🌳 Check that the good commit is an ancestor of the bad commit.
- ✨ 🧮 Estimate the number of binary-search checks.
- ✨ 🛡️ Never starts or resets a bisect session automatically.
python main.py --repo . --good <good-ref> --bad <bad-ref>Run the command inside a Git repository, replacing the refs with a known-good and known-bad commit. The tool only reads Git metadata and prints commands for you to review.
python main.py --repo . --good <good-ref> --bad <bad-ref>Python 3.10 or newer is required. No third-party packages are needed.
- Language: Python 3.10+
- Libraries: Python standard library
- Dependencies: None
git-bisect-helper/
├── assets/overview.svg
├── tests/test_main.py
├── main.py
├── pyproject.toml
├── .gitignore
├── LICENSE
└── README.md
- Add optional path filters for monorepos.
- Add a plain-text report export.
Issues and pull requests are welcome. Include a minimal input example, expected behavior, and a regression test when changing parsing or quoting rules.
Released under the MIT License.