Re: Add "git grep" helper

From: Junio C Hamano <>
Date: 2005-09-13 07:45:26
Linus Torvalds <> writes:

> Very convenient shorthand for
> 	git-ls-files [file-patterns] | xargs grep <pattern>
> which I tend to do all the time.

Great minds think alike.  I stopped using 'grep-find' in Emacs
and use "git-ls-fiels -z | xargs -0 grep" instead these days.
Thanks for the patch; applied.

I do not much care about other grep flags but I think you forgot
to special case '-e', so what is in the "master" branch has one
extra commit on top of it for that (it does not seem to have
percolated down yet).

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at
Received on Tue Sep 13 07:46:04 2005

This archive was generated by hypermail 2.1.8 : 2005-09-13 07:46:06 EST