On Fri, Oct 8, 2010 at 2:51 PM, Jeff King <peff@xxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html