If I start doing a git bisect, then the output of git status will show me that I am currently bisecting. I would like to perform this “are you bisecting?” test in a script, I could look at the output of git status, but I suspect there is a better way. git status --porcelain doesn't include this bisecting status.
How can I robustly check in a script that a git bisect is currently active?
git version 2.25