I was thinking that this could be a metric which is given too much importance imho, since it can be hacked, but not necessarily with a script. Deliberately making smaller or redundant commits achieves something similar. Of course a script is at least fun and also good practice.