I've been playing with
vc-git-grep as pointed to by this answer
How do you grep from within emacs ( git grep 'foo' | grep baa )
I have a special requirement like this:
$ git grep -e 'include' --and -e Image components/core/app/models/contact.rb: include HasImage components/core/app/models/opportunity.rb: include HasBannerImage components/core/app/models/organization.rb: include HasImage components/core/app/models/organization.rb: include HasBannerImage $
Is it possible to do that with emacs vc-git-grep ?
-*- mode: grep; default-directory: "~/" -*- Grep started at Wed Sep 6 06:59:56 git --no-pager grep -n -e Image -- * Gemfile.lock:70: rails-assets-Imagesloaded (= 4.1.1) Gemfile.lock:362: rails-assets-Imagesloaded (4.1.1) ...
To summarize, my question is, is it possible to manipulate the parameters passed to the git grep command?