Re: Efficiently detecting paths that differ from each other only in case
- From
Dun Peal <dunpealer@gmail.com>
- Date
- Oct 8, 2010, 19:57 UTC
- Message-ID
- <AANLkTimAhjHm5Z4ekTOBaxwzyw2YD6MrRnB1O8E6nAtw@mail.gmail.com>
- In-Reply-To
- <20101008195120.GA10810@sigill.intra.peff.net>
On Fri, Oct 8, 2010 at 2:51 PM, Jeff King <peff@peff.net> wrote:
> One thing to consider, though, is if this is a hook running on the > server, you probably don't want to look at the index. You probably want > to look for duplicates in one tree entry (fed to the hook). So you would > be using git ls-tree, which probably is a bit slower.
Thanks, but why is that? Why can't I use ls-files, and must use use ls-tree, which you say would be slower?
For extra details: is the central Git repository, running under Gitorious, on a fairly powerful server. It's a bare repo, naturally.
D