Re: [PATCH 6/8] ls-tree: work from subdirectory.
- From
Petr Baudis <pasky@suse.cz>
- Date
- Nov 27, 2005, 18:22 UTC
- Message-ID
- <20051127182244.GK22159@pasky.or.cz>
- In-Reply-To
- <Pine.LNX.4.64.0511270949540.13959@g5.osdl.org>
Dear diary, on Sun, Nov 27, 2005 at 07:01:37PM CET, I got a letter where Linus Torvalds <torvalds@osdl.org> said that...
Show 11 quoted lines
> If you use "-r", it acts the way you'd expect. If you _don't_ use "-r", it > acts strangely, but very consistently with git-diff-tree: it only ever > shows the _first_ part of a pathname. So > > git-ls-tree HEAD drivers/char/ > > should show just one entry: "drivers". While adding a "-r" should show all > files under drivers (and the trees leading up to it). > > And yes, you're right. That's a much bigger change by my suggested diff, > and more likely to cause confusion.
Ugh. That's really weird. Wouldn't a better approach be to fix git-ls-files to behave more sanely? (That is, listing the entry for drivers/char instead of drivers?)
-- 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.