Re: Refactoring class names, Xcode and git.
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