Some initial work on an optimized way to get git history. Current implementation still not suitable for very large repositories.