* problem with git grep -P
@ 2012-02-15 13:15 Zbigniew Jędrzejewski-Szmek
0 siblings, 0 replies; only message in thread
From: Zbigniew Jędrzejewski-Szmek @ 2012-02-15 13:15 UTC (permalink / raw)
To: git; +Cc: Michał Kiedrowicz
Hi,
I'm not getting output from git grep -P. Simplified test case:
$ git grep -P '^ ' t/t4012-diff-binary.sh
(nothing)
$ git grep -E '^ ' t/t4012-diff-binary.sh
t/t4012-diff-binary.sh: a | 2 +-
t/t4012-diff-binary.sh: b | Bin
t/t4012-diff-binary.sh: c | 2 +-
t/t4012-diff-binary.sh: d | Bin
t/t4012-diff-binary.sh: 4 files changed, 2 insertions(+), 2 deletions(-)
t/t4012-diff-binary.sh: binfile | Bin 0 -> 1026 bytes
t/t4012-diff-binary.sh: textfile | 10000 +++++++++++++++++++++++++++++++
I would expect -P to give the same results as -E.
Am I missing something special about pcre?
$ git --version
git version 1.7.9.5.g1210a
(AFAICT this hasn't changed since grep -P was merged)
I have libpcre3 8.12-4 from debian.
--
Zbyszek
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-15 13:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 13:15 problem with git grep -P Zbigniew Jędrzejewski-Szmek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).