bin/git-bisect-status: Match it more GIT.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 10 Jun 2021 19:37:39 +0000 (21:37 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 10 Jun 2021 19:37:39 +0000 (21:37 +0200)
bin/git-bisect-status

index 57e6a62..c49167a 100755 (executable)
@@ -1,3 +1,3 @@
 #! /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 $_'
+git bisect visualize --oneline|wc -l|perl -MPOSIX -lne 'print "Bisecting: ".floor(($_-1)/2)." revisions left to test after this (roughly ".(floor(log($_-1)/log(2))-1)." steps)" if $_'