From: Jason McMullan Date: Sat, 28 May 2005 22:02:08 GMT Subject: Re: [PATCH-RFC] Rewrite ls-tree to behave more like "/bin/ls -a" 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: > - 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 Corporation