Re: Efficiently detecting paths that differ from each other only in case
- From
Dun Peal <dunpealer@gmail.com>
- Date
- Oct 8, 2010, 19:44 UTC
- Message-ID
- <AANLkTik6pSJFUkY9sooSH7iANaKLhxdN+ouKRXJn1B9G@mail.gmail.com>
- In-Reply-To
- <20101008135034.GC5163@sigill.intra.peff.net>
On Fri, Oct 8, 2010 at 8:50 AM, Jeff King <peff@peff.net> wrote:
> You can do: > > git ls-files | tr A-Z a-z | sort | uniq -d
Thanks, but the main issue is that this is a very large repository with tens of thousands of paths (files and directories).
git ls-files thus takes a long time, almost a second. Since this is a commit-heavy repo, I'd rather avoid that overhead.
Incidentally, there's an SVN hook that does the exact same thing that I want to do:
http://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts/case-insensitive.py
D