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

fast-import [mis?]-honors core.ignorecase

From
Jay Soffian <jaysoffian@gmail.com>
Date
Jun 25, 2012, 20:48 UTC
Message-ID
<CAG+J_DygPXtjD-0gv8XXpV0JErw_jpwRLOZ00H9bem5hN8g7ZA@mail.gmail.com>

I was using a "fast-export | <filter program> | fast-import" as a much faster filter-branch --env-filter (I needed to rewrite author/committer email-addresses) and was surprised that after the pipeline was done, the new ref's trees didn't match the old ref's trees. i.e.:

  $ cmp <(git log old-ref --pretty='%T')  <(git log --pretty='%T' new-ref)

didn't return 0. Comparing one of the differing tree-pairs indicated it was due to a case-difference in a file which had been renamed. After some experimenting I finally tracked this down to having core.ignorecase set to "true" on the repo in which I was running the pipeline. By setting it to "false" the filtering pipeline completes with new-ref (and all its ancestors) being tree-identical to old-ref.

Is there any reason for fast-import to honor ignorecase?
j.
Next: Joshua Jensen
Message 1 of 2 in “fast-import [mis?]-honors core.ignorecase”
  1. Jay SoffianJun 25, 2012
  2. Joshua JensenJun 26, 2012

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.