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

Re: [PATCH v3 0/2] bringing attributes to pathspecs

From
BWBrandon Williams <bmwill@google.com>
Date
Mar 21, 2017, 16:52 UTC
Message-ID
<20170321165254.GA12937@google.com>
In-Reply-To
<CACsJy8BRTuH=xv_xvQPOkVaRcMXKnjgT77SXkwLkZ6aAvcTyHg@mail.gmail.com>
On 03/21, Duy Nguyen wrote:
Show 19 quoted lines
> On Tue, Mar 14, 2017 at 1:23 AM, Brandon Williams <bmwill@google.com> wrote:
> > v3 fixes some nits in style in the test script (using <<-\EOF instead of <<-EOF)
> > as well as fixing a few other minor things reported by Junio and Jonathan.
> 
> I'm slowly digging through the pile of mails in the past weeks... I
> know this has landed on 'master' (thanks!). Just wanted to check
> something.
> 
> The series updated match_pathspec(), but that's only one of two
> pathspec filtering functions. The other is tree_entry_interesting()
> (e.g. for "git grep <tree>"). Do you have plans to support :(attr)
> there too? "No" is a perfectly fine answer (and it will end up in my
> forever growing backlog).
> 
> The thing about tree_entry_interesting() is, we would want to stop
> traversing subtrees as soon as possible. Naively implemented, we would
> need to traverse all subtrees so we can call match_attrs(). That's not
> great. Oii I'm rambling.. I don't know yet how to implement this thing
> efficiently.

I expect that this should be supported in tree_entry_interesting() at some point, though I didn't have any immediate plans to do that yet. One reason for that is I just haven't thought through all the cases to make it performant (as you've pointed out). So for now it'll probably be appended to the backlog (yours, mine, or both) and if there ends up being a larger demand for it then we can increase the priority for it.

-- 
Brandon Williams
Previous: Junio C Hamano
Message 23 of 23 in “bringing attributes to pathspecs”
  1. 0/2 bringing attributes to pathspecsBrandon Williams, Mar 9, 2017
  2. 1/2 pathspec: allow querying for attributesBrandon Williams, Mar 9, 2017
  3. Jonathan TanMar 9, 2017
  4. Brandon WilliamsMar 10, 2017
  5. Junio C HamanoMar 13, 2017
  6. Stefan BellerMar 13, 2017
  7. 2/2 pathspec: allow escaped query valuesBrandon Williams, Mar 9, 2017
  8. Jonathan TanMar 9, 2017
  9. Brandon WilliamsMar 10, 2017
  10. Stefan BellerMar 9, 2017
  11. 0/2 bringing attributes to pathspecsBrandon Williams, Mar 10, 2017
  12. 1/2 pathspec: allow querying for attributesBrandon Williams, Mar 10, 2017
  13. Jonathan TanMar 10, 2017
  14. Brandon WilliamsMar 11, 2017
  15. 2/2 pathspec: allow escaped query valuesBrandon Williams, Mar 10, 2017
  16. 0/2 bringing attributes to pathspecsBrandon Williams, Mar 13, 2017
  17. 1/2 pathspec: allow querying for attributesBrandon Williams, Mar 13, 2017
  18. 2/2 pathspec: allow escaped query valuesBrandon Williams, Mar 13, 2017
  19. Junio C HamanoMar 13, 2017
  20. Brandon WilliamsMar 13, 2017
  21. Duy NguyenMar 21, 2017
  22. Junio C HamanoMar 21, 2017
  23. Brandon WilliamsMar 21, 2017

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.