From: Petr Baudis Date: Sun, 27 Nov 2005 18:22:44 GMT Subject: Re: [PATCH 6/8] ls-tree: work from subdirectory. Message-ID: <20051127182244.GK22159@pasky.or.cz> In-Reply-To: Dear diary, on Sun, Nov 27, 2005 at 07:01:37PM CET, I got a letter where Linus Torvalds said that... > 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.