#! /bin/bash # https://stackoverflow.com/a/37668768/2995591 git bisect visualize --oneline|wc -l|perl -MPOSIX -lne 'print "Bisecting: ".ceil($_/2)." revisions left to test after this (roughly ".ceil(log($_)/log(2))." steps)" if $_'