Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

Re: Add "git grep" helper

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:06

Possibly related (same subject, not in this thread)

Linus Torvalds [off-list ref] 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).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help