Improve is_patch_git_generated()