Re: [PATCH] git-grep: allow patterns starting with -
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- Jun 25, 2006, 16:18 UTC
- Message-ID
- <E1FuXK0-0001fy-1T@moooo.ath.cx>
- In-Reply-To
- <20060625184757.f8273820.tihirvon@gmail.com>
Show 11 quoted lines
> Matthias Lederhofer <matled@gmx.net> wrote: > > > Signed-off-by: Matthias Lederhofer <matled@gmx.net> > > --- > > I did not find another way to use patterns starting with -, if it is > > possible without the patch please tell me and ignore the patch :) > > example: > > % git grep -- --bla HEAD HEAD~1 -- --foo > > HEAD:--foo/bla:test --bla foo > > git grep -e --bla
Perhaps the original patch may be applied anyways for consistency with the GNU grep? :) But it's really not important to me and well, having -- twice in the command line is a bit strange too.