Re: Add "git grep" helper

From: Junio C Hamano <junkio@cox.net>
Date: 2005-09-13 07:45:26
Linus Torvalds <torvalds@osdl.org> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
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