During git bisect I want to take a specific action if the commit being bisected is the member of a set of commits of interest. Specifically, consider this situation:
----------C-------- A
\---B---/
B and C are both reachable from A but not from each other. During bisect I want to apply a patch to commits from which B is reachable because B introduced an unrelated bug and I want to filter out that noise. The patch should not be applied when examining C.
What's the best way, in general, to test if a commit C is in the set of commits from which B is reachable starting from commit A? Ideally it would be be an expression I can pass to git rev-list but I suspect it will require more than that.