Q:

Advanced git grep from within emacs

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 ?
I tried
-*- 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? 

A:

I found the answer to my own question. It seems M-x grep is pretty powerful, in that it can handle any "grep like" shell command's output.
So you can do
M-x grep
# it will ask you for the command, paste this
git --no-pager grep -n -e 'include' --and -e Image

and voila!

