All of lore.kernel.org
 help / color / mirror / Atom feed
* grep --no-index and pathspec
@ 2011-02-11  8:59 Lars Noschinski
  2011-02-11 15:04 ` Michael J Gruber
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Noschinski @ 2011-02-11  8:59 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-02-12  8:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11  8:59 grep --no-index and pathspec Lars Noschinski
2011-02-11 15:04 ` Michael J Gruber
2011-02-11 15:06   ` [PATCH] grep.txt: document pathspec for --no-index Michael J Gruber
2011-02-11 18:27   ` grep --no-index and pathspec Junio C Hamano
2011-02-11 21:37     ` Junio C Hamano
2011-02-12  8:14       ` Nguyen Thai Ngoc Duy
2011-02-12  8:26         ` Junio C Hamano
2011-02-12  8:39           ` Nguyen Thai Ngoc Duy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.