git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: grep --no-index and pathspec

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Feb 12, 2011, 08:39 UTC
Message-ID
<AANLkTikZuRyyZ4tErYuo1itmEs1X_gT5aogpTM3s4gON@mail.gmail.com>
In-Reply-To
<7vvd0py7xy.fsf@alter.siamese.dyndns.org>
On Sat, Feb 12, 2011 at 3:26 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
>>     NOTE! This does *not* obviate the need for the caller to do the *exact*
>>     pathspec match later. It's a first-level filter on "read_directory()", but
>>     it does not do the full pathspec thing. Maybe it should. But in the
>>     meantime,...
>
> I was around back then, so I know how the code came about ;-)
>
> The pieces used in the pathspec limiting logic have been restructured well
> enough that I suspect it may now be feasible for us to revisit the "Maybe
> it should" part in the above quote.  Thanks to nd/struct-pathspec topic, I
> think we are already half-way there.

I was around too, just oblivious about things. I can look into that. Need to think a bit how to save what pathspecs are "seen", so that prune_directory() in builtin/add.c can be dropped.

-- 
Duy
Previous: Junio C Hamano
Message 8 of 8 in “grep --no-index and pathspec”
  1. Lars NoschinskiFeb 11, 2011
  2. Michael J GruberFeb 11, 2011
  3. grep.txt: document pathspec for --no-indexMichael J Gruber, Feb 11, 2011
  4. Junio C HamanoFeb 11, 2011
  5. Junio C HamanoFeb 11, 2011
  6. Nguyen Thai Ngoc DuyFeb 12, 2011
  7. Junio C HamanoFeb 12, 2011
  8. Nguyen Thai Ngoc DuyFeb 12, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.