Adding the ability to format a git diff using preg_match