Re: [PATCH-RFC] Rewrite ls-tree to behave more like "/bin/ls -a"
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