On long project, there can be a whole bunch of commits it's not worth trying during bisection e.g.
- commits which are known to be broken
- commits which are otherwise part of a PR not guaranteeing validity
The second one can mostly be handled by using bisect --first-parent though it requires remembering to use it, but the first one is more of an issue.
A script for bisect run can provide the feature, but then that needs to be a meta-script which either runs a sub-script (for the bisect run case) or acts as a shell taking old/new/skip commands to pass them along when a commit should be included.
Create a file, somewhere, e.g. bisect.blacklist with a list of the bad commits like this:
Then whenever you start bisecting with
git bisect start, also runAfter that you should be able to bisect normally (be it by hand or by script), with git bisect already knowing to skip those commits.
If those commits are generally broken when it comes to bisecting, you could also track that file in git for extra convenience.
Hint: If you add
git bisect startat the start of the blacklist file, then you don't have to run it manually before thereplaycommand.