Re: [PATCH] Add a notice to the doc of git-ls-tree.
- From
Petr Baudis <pasky@suse.cz>
- Date
- Jul 21, 2008, 00:22 UTC
- Message-ID
- <20080721002248.GJ10151@machine.or.cz>
- In-Reply-To
- <7vljzw14br.fsf@gitster.siamese.dyndns.org>
On Sun, Jul 20, 2008 at 05:14:16PM -0700, Junio C Hamano wrote:
> I never thought you would think "showing relative to tree-root" is even an > option.
I assume you mean "not filtering relative to tree-root"?
> That would make it inconsistent with not just the established > semantics of what the plumbing did, but also with what ls-files does.
But ls-files always works on the index; ls-tree can work on trees, and when you're inspecting a non-root tree object from within a subdirectory, this behaviour can be rather unexpected. But as I said, I'm fine with just documenting it.
-- Petr "Pasky" Baudis As in certain cults it is possible to kill a process if you know its true name. -- Ken Thompson and Dennis M. Ritchie