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

Re: ls-tree and wildcards

From
RMRyan McCue <lists@rotorised.com>
Date
May 12, 2012, 15:46 UTC
Message-ID
<4FAE85EA.3050807@rotorised.com>
In-Reply-To
<CACsJy8A73D_39ND-aqF0nECcKqjLHeqvEJ_XbT3BJd-0cLV1Nw@mail.gmail.com>
Nguyen Thai Ngoc Duy wrote:
> I don't think it ever does. There's a mention of "patterns" in ls-tree
> man page, which is misleading.
Aha, I thought this might be the case. Thanks, I'll grep ls-tree then.
> A question that might help us understand your use case and give a
> better advice, or improve the system: why do you need that?

I need to be able to get all files starting with a certain string ("screenshot-" in this case) with certain extensions ("png", "jpg", "jpeg" or "gif" in this case). Passing into grep will do the trick, but a single command is my preferred option if it exists.

I don't mind this not existing in git (given that piping into grep will work just as well), but reading "patterns" on the man page made me think it may exist. I think the wording of that should probably be changed to avoid confusion.

Thanks for the response.
-- 
Ryan McCue
<http://ryanmccue.info/>
Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 3 of 6 in “ls-tree and wildcards”
  1. Ryan McCueMay 12, 2012
  2. Nguyen Thai Ngoc DuyMay 12, 2012
  3. Ryan McCueMay 12, 2012
  4. Junio C HamanoMay 14, 2012
  5. Nguyen Thai Ngoc DuyMay 15, 2012
  6. Junio C HamanoMay 15, 2012

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.