defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

inconsistent git case sensitivity behaviour on mac #1938

Open Jerakin opened 6 years ago

Jerakin commented 6 years ago

Mac doesn't care about case sensitivity. (which is super annoying)

  1. Create a file with a capital letter in it (i.e. MYfile.gui)
  2. Commit it
  3. Change name to an identical but in lower case (i.e. myfile.gui)

In a terminal session (or source tree) the file doesn't seem to be changed but in Defolds "Changed Files" list it does.

Not sure how Defold want's to handle this situation.

erikangelin-king commented 6 years ago

Did you mv MYfile.gui myfile.gui or git mv MYfile.gui myfile.gui in the terminal?

Jerakin commented 6 years ago

I did it within Defold, because I wanted the editor to refactor the naming for me

To change cases in mac with git you need to do two commands

git mv MYfile.gui my_file.gui
git mv my_file.gui myfile.gui