Improved the way a git commit is parsed