Thread (10 messages) flat view 10 messages, 4 authors, 2016-06-15

Re: [PATCH] git-grep: allow patterns starting with -

From: Matthias Lederhofer <hidden>
Date: 2016-06-15 22:42:31

Matthias Lederhofer [off-list ref] wrote:
quoted
Signed-off-by: Matthias Lederhofer <redacted>
---
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help