Remove reverted commits from the count.