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

Re: [PATCH-RFC] Rewrite ls-tree to behave more like "/bin/ls -a"

From
JMJason McMullan <jason.mcmullan@timesys.com>
Date
May 28, 2005, 22:02 UTC
Message-ID
<1117317729.11542.32.camel@jmcmullan.timesys>
In-Reply-To
<7vll5zygn1.fsf_-_@assigned-by-dhcp.cox.net>
On Sat, 2005-05-28 at 00:05 -0700, Junio C Hamano wrote:
Show 19 quoted lines
>  - Unlike the old ls-tree behaviour that used paths arguments to
>    restrict output (not that it worked as intended---as pointed
>    out in the mailing list discussion, it was quite incoherent),
>    this rewrite uses paths arguments to specify what to show.
> 
>  - Without arguments, it implicitly uses the root level as its
>    sole argument ("/bin/ls -a" behaves as if "." is given
>    without argument).
> 
>  - Without -r (recursive) flag, it shows the named blob (either
>    file or symlink), or the named tree and its immediate
>    children.
> 
>  - With -r flag, it shows the named path, and recursively
>    descends into it if it is a tree.
> 
>  - With -d flag, it shows the named path and does not show its
>    children even if the path is a tree, nor descends into it
>    recursively.
This behavior pattern is very agreeable. I'll take it!
Consider your patch:
Signed-Off-By: Jason McMullan <jason.mcmullan@timesys.com>
-- 
Jason McMullan <jason.mcmullan@timesys.com>
TimeSys Corporation
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 7 in “ls-tree path restriction semantics fixes”
  1. ls-tree path restriction semantics fixesJason McMullan, May 27, 2005
  2. Junio C HamanoMay 27, 2005
  3. Jason McMullanMay 27, 2005
  4. Junio C HamanoMay 28, 2005
  5. Rewrite ls-tree to behave more like "/bin/ls -a"Junio C Hamano, May 28, 2005
  6. Jason McMullanMay 28, 2005
  7. Junio C HamanoMay 29, 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.