• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Refactoring class names, Xcode and git.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refactoring class names, Xcode and git.


  • Subject: Re: Refactoring class names, Xcode and git.
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 13 May 2015 13:56:53 -0400


On May 13, 2015, at 1:52 PM, Marco S Hyman wrote:


To be clear, the class files are named the same, but the case of certain letters have been changed, that's it.

I don’t quite understand this statement.  file “foo” and file “Foo” are
different files — except on the apple filesystem where case is ignored.
Grumble.  Did the case of the file names change?


Yes.  That's why I mentioned that I refactored the class names to capitalize the first letter in the class.  When Xcode refactors the class name, it also renames the files.

If you have changed “Foo.m" to “foo.m” and are having troubles it may be
because those are different files to git even though the OS (and perhaps
Xcode) sees them as one.  The command line does the expected thing using


Yeah, that's what I was concerned about.  DOES Xcode's refactoring do the right thing with regards to Git in this case.

We had a bunch of classes with file names like alertHandler.m where the first letter of the class and the files for the class are lowercased. 

 “git mv Foo.m foo.m”   (git 2.3.4)

Marc

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Refactoring class names, Xcode and git. (From: Alex Zavatone <email@hidden>)
 >Re: Refactoring class names, Xcode and git. (From: Marco S Hyman <email@hidden>)

  • Prev by Date: Re: Refactoring class names, Xcode and git.
  • Next by Date: Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
  • Previous by thread: Re: Refactoring class names, Xcode and git.
  • Next by thread: Re: Refactoring class names, Xcode and git.
  • Index(es):
    • Date
    • Thread