I'm attaching a patch with the implementation of the new feature (vc-git-grep-template).