Improved the `_git_time_since_commit` function.

Check for at least one commit using a git log limit of one, improving peformance inside git repos with a large history.