Re: [PATCH 6/8] ls-tree: work from subdirectory.
- From
Petr Baudis <pasky@suse.cz>
- Date
- Nov 27, 2005, 11:08 UTC
- Message-ID
- <20051127110800.GE10680@pasky.or.cz>
- In-Reply-To
- <7vr792fnta.fsf@assigned-by-dhcp.cox.net>
Dear diary, on Sun, Nov 27, 2005 at 10:21:53AM CET, I got a letter where Junio C Hamano <junkio@cox.net> said that...
> - cg-admin-cat may want to use -r for the first one (${ARGS[@]}
> may name a directory), but that also would change the
> behaviour. The current one shows only one level, instead of
> going all the way down.I think the current behaviour is nonsensical, since it cats all the files in the subdirectory, instead of just listing it. Didn't git-ls-tree already have the -d implicit sometime in the past? At any rate, the change to git-ls-tree would fix this. :-)
Show 5 quoted lines
> - cg-log:117 uses ls-tree without -r, but I have a feeling that > it might be just a bug, even with the current ls-tree; I > suspect the user would not see things in subdirectories. > This is only for the initial commit so it may or may not > matter much.
Thanks, fixed. It uses -r now.
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ VI has two modes: the one in which it beeps and the one in which it doesn't.