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

Re: folder naming bug?

From
Bryan Turner <bturner@atlassian.com>
Date
Feb 3, 2015, 04:37 UTC
Message-ID
<CAGyf7-FXhhW74DvcO8nbWud9A868AYqKj_zY61wmf9XGvH4eQA@mail.gmail.com>
In-Reply-To
<27503C0E-7D33-4893-AD25-6A821D31FAB1@sparkstart.io>

Are you, by any chance, on MacOS? HFS+ by default is case-insensitive-but-case-preserving, and Git on MacOS by default runs with core.ignorecase = true as a result.

If you set that to false does it change the behavior?

Hope this helps, Bryan Turner

On Tue, Feb 3, 2015 at 12:56 PM, Kevin Coleman <kevin.coleman@sparkstart.io> wrote:

Show 44 quoted lines
> git isn’t tracking folder renames when the case of the letters change, but it will track it if the folder changes names.  Is this intentional?
>
> Here is an example:
>
> 08:51:26 ~/test $ git init
> Initialized empty Git repository in /Users/kcoleman/test/.git/
> 08:51:29 ~/test (master #) $ mkdir main
> 08:51:44 ~/test (master #) $ cd main
> 08:51:46 ~/test/main (master #) $ touch readme.md
> 08:51:50 ~/test/main (master #) $ ls
> readme.md
> 08:51:53 ~/test/main (master #) $ cd ..
> 08:51:54 ~/test (master #) $ git add .
> 08:51:59 ~/test (master #) $ git commit -m "one"
> [master (root-commit) b0fddf6] one
>  1 file changed, 0 insertions(+), 0 deletions(-)
>  create mode 100644 main/readme.md
> 08:52:04 ~/test (master) $ cd main
> 08:52:14 ~/test/main (master) $ cd ..
> 08:52:27 ~/test (master) $ mv main Main
> 08:53:51 ~/test (master) $ git status
> On branch master
> nothing to commit, working directory clean
> 08:53:53 ~/test (master) $ ls
> Main
> 08:54:02 ~/test (master) $ mv Main MainA
> 08:55:44 ~/test (master *) $ git status
> On branch master
> Changes not staged for commit:
>   (use "git add/rm <file>..." to update what will be committed)
>   (use "git checkout -- <file>..." to discard changes in working directory)
>
>         deleted:    main/readme.md
>
> Untracked files:
>   (use "git add <file>..." to include in what will be committed)
>
>         MainA/
>
> no changes added to commit (use "git add" and/or "git commit -a")
> 08:55:45 ~/test (master *) $--
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Kevin ColemanNext: Kevin Coleman
Message 2 of 7 in “folder naming bug?”
  1. Kevin ColemanFeb 3, 2015
  2. Bryan TurnerFeb 3, 2015
  3. Kevin ColemanFeb 3, 2015
  4. Jeff KingFeb 3, 2015
  5. Kevin ColemanFeb 3, 2015
  6. Torsten BögershausenFeb 3, 2015
  7. Torsten BögershausenFeb 3, 2015

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.