Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 0/6] Introduce pathspec struct

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:39

David Ripton [off-list ref] writes:
On 09/28/10 04:37, Junio C Hamano wrote:
quoted
  - David's "git grep --exclude-dir D" topic should be able to internally
    use the same negative pathspec mechanism.  At the command line level,
    it allows (and needs to allow) only the leading prefix (which is how
    GNU grep's --exclude-dir works), but it makes tons of sense for us to
    allow "--exclude $pattern" from the command line, and share the
    mechanism internally between the two.
I don't think GNU grep's --exclude-dir only allows the leading
prefix.
Heh, I was half expecting to hear that after I wrote it ;-) What I meant
was "pattern matches against the leading path, excluding the basename
part" (as the option is exclude-DIR, that is more or less by definition).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help