Re: [PATCH] git.el: Add a git-grep command
- From
David Kågedal <davidk@lysator.liu.se>
- Date
- Feb 22, 2008, 09:15 UTC
- Message-ID
- <87wsox9wsu.fsf@lysator.liu.se>
- In-Reply-To
- <20080222073157.GA6630@diana.vm.bytemark.co.uk>
Karl Hasselström <kha@treskal.com> writes:
Show 12 quoted lines
> On 2008-02-19 14:03:18 +0100, David Kågedal wrote: > >> This works for me, but before including it someone else should try >> it. It might only work in Emacs 22, for instance. > > It works for me (also using emacs 22). > > I was a bit confused about the filename pattern selection, though: the > promt suggested "ch", which, when I accepted it, was converted to > "*.[ch]". However, manually specifying "*.c" works as well. I'm not > sure if this is specific to your patch or something affecting all grep > stuff in emacs (though I can't recall seeing it before).
This isn't invented by me, but is "standard" in the grep commands in Emacs 22. See the grep-files-aliases variable and the documentation of rgrep.
-- David Kågedal