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

Re: [PATCH] ls-tree matching a prefix

From
Junio C Hamano <junkio@cox.net>
Date
May 26, 2005, 04:44 UTC
Message-ID
<7vsm0aeguo.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050526034756.GA1488@port.evillabs.net>
>>>>> "JM" == Jason McMullan <jason.mcmullan@timesys.com> writes:

JM> For this purpose, I've enhanced git-ls-tree to allow the JM> specification of an optional 'match path' that restricts JM> that output of git-ls-tree to just the path requested.

JM> If the patch has a '/' in it, it implies -r.

I'd rather see the behaviour match existing commands with path restriction, like diff-tree, diff-cache, and diff-files. That is, to take a list of paths and limit your output to those that match one of them. I do not think this enhancement would negatively affect your stated use of getting one entry with the exact match.

Previous: Jason McMullanNext: McMullan, Jason
Message 2 of 6 in “ls-tree matching a prefix”
  1. ls-tree matching a prefixJason McMullan, May 26, 2005
  2. Junio C HamanoMay 26, 2005
  3. McMullan, JasonMay 26, 2005
  4. Jason McMullanMay 26, 2005
  5. ls-tree matching multiple pathsJunio C Hamano, May 26, 2005
  6. Junio C HamanoMay 26, 2005

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.