git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* folder naming bug?
@ 2015-02-03  1:56 Kevin Coleman
  2015-02-03  4:37 ` Bryan Turner
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Coleman @ 2015-02-03  1:56 UTC (permalink / raw)
  To: git

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 *) $

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-03  8:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-03  1:56 folder naming bug? Kevin Coleman
2015-02-03  4:37 ` Bryan Turner
2015-02-03  4:52   ` Kevin Coleman
2015-02-03  5:23     ` Jeff King
2015-02-03  6:23       ` Kevin Coleman
2015-02-03  8:40         ` Torsten Bögershausen
2015-02-03  8:34     ` Torsten Bögershausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).