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

grep --no-index and pathspec

From: Lars Noschinski <hidden>
Date: 2016-06-15 22:50:32

Hi everyone,

I encountered some strange behaviour with grep when using both the  
--no-index option and a pathspec. Glob patterns seem to be ignored:

----------
$ git grep -l --no-index . -- '*.bib'
paper.bib
paper.tex
ex1.tex
----------

But on the other hands, leading path matches work:
----------
$ git grep -l --no-index . -- 'paper'
paper.bib
paper.tex
----------

Without the --no-index option, everything works fine:
----------
$ git grep -l --no-index . -- '*.bib'
paper.bib
----------

This is with git version 1.7.4, but I encountered it also with the  
1.7.2.3 Debian package.

   -- Lars
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help