Subject: Re: bug#32549: Allow passing custom options to vc-git-grep

From: Noam Postavsky <[email-masked]>
Date: Mon, 27 Aug 2018 23:52:41 -0400

Federico Tedin <[email-masked]> writes:

> I'm wondering how I would set my custom arguments when the vc-git-grep
> function is called from another function. For example, the projectile
> package defines projectile-grep, which eventually calls rgrep or
> vc-git-grep [1] (depending on the user's choice).

It looks like you'd have to do

    (let ((current-prefix-arg '(4)))
      (vc-git-grep ...))