Stochastic bisection in Git
Stochastic bisection in Git
Posted Dec 15, 2021 16:37 UTC (Wed) by nijhof (subscriber, #4034)In reply to: Stochastic bisection in Git by farnz
Parent article: Stochastic bisection in Git
You could probably already do that today in git bisect run. In the command/script:
if <this commit is insignificant>; then exit 125 # tell git bisect to skip this commit. fi
Posted Dec 15, 2021 16:47 UTC (Wed)
by epa (subscriber, #39769)
[Link]
I have lots of commits like 'whitespace' or 'renamed variable' or 'changed from private to public' where I am only 99% sure. So I would like git bisect to mostly disregard them when picking its midpoint to test, but of course, if one of these commits is the only candidate between the current bad and good labels, it should be built and tested.
That will also speed up bisection by making the search tree shallower (assuming the prior probabilities or scores assigned to each commit are broadly reliable). Doing the normal bisection and then skipping an individual commit will give a smaller speedup.
Stochastic bisection in Git