3 ms·
There is actually a bayesian version which I wrote: https://github.com/ealdwulf/bbchop https://github.com/ealdwulf/bbchop Basically it calculates the commit to
by ajb 3y ago
There is actually a bayesian version which I wrote: https://github.com/ealdwulf/bbchop https://github.com/ealdwulf/bbchop
Basically it calculates the commit to test at each step which gains the most information, under some trivial assumptions. The calculation is O(N) in the number of commits if you have a linear history, but it requires prefix-sum which is not O(N) on a DAG so it could be expensive if your history is complex.
Never got round to integrating it into git though.
- deleted 3y ago[deleted]
- muxator 3y agoHidden gem! Thanks!
- defen 3y agoThat's a cool idea. Would also be interesting to consider the size of the commit - a single 100-line change is probably more likely to introduce a bug than 10 10-line changes.
- phist_mcgee 3y agoYou haven't met the developers at my last company.
- thaliaarchi 3y agoThe commit that caused OP's bug changed two lines. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f31dcb152a3d0816e2f1deab4e64572336da197d https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...