git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Jeff KingNext: Jeff King
Message 3 of 14 in “Efficiently detecting paths that differ from each other only in case”
  1. Dun PealOct 8, 2010
  2. Jeff KingOct 8, 2010
  3. Dun PealOct 8, 2010
  4. Jeff KingOct 8, 2010
  5. Dun PealOct 8, 2010
  6. Jeff KingOct 8, 2010
  7. Dun PealOct 8, 2010
  8. Jakub NarebskiOct 9, 2010
  9. Dun PealOct 9, 2010
  10. Jakub NarebskiOct 9, 2010
  11. Jeff KingOct 11, 2010
  12. Dun PealOct 16, 2010
  13. Jeff KingOct 17, 2010
  14. Jonathan NiederOct 8, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.