Git repository log analysis - Scala rewrite