Re: Xcode and Git - renaming classes by changing case.
Re: Xcode and Git - renaming classes by changing case.
- Subject: Re: Xcode and Git - renaming classes by changing case.
- From: Joar Wingfors <email@hidden>
- Date: Wed, 08 Jul 2015 08:32:22 -0700
File a bug report and then nuke your index to force it to be rebuilt.
Joar
> On 08 Jul 2015, at 07:22, Alex Zavatone <email@hidden> wrote:
>
> Xcode 6.3
>
> Git repo.
>
> Refactor a class from myclassThatIsImproperlyCased to MyClassThatIsImproperlyCased.
>
> This changes the filename by only changing the case, not the spelling of the files.
>
> Commit the file, make changes, continue. Repeat
>
> Quit and restart Xcode and reload the project.
>
> Select the class and look at the Assistant Editor in Comparison mode.
>
> Xcode now states "The file does not exist in the index."
>
> WTF.
>
>
>
>
> Does anyone have a good strategy dealing with Xcode and Git when renaming classes where the spelling of the class does not change, but only the case?
>
> I've looked through the tips on Stack Overflow and even though I'm able to temporarily add an commit the desired files to my local Git repo and push to the remote, as soon as I quit and relaunch Xcode I will click on the file and look at its history in the Assistant Editor and I get "This file does not exist in the index."
>
> We have classes done offshore that start with lowercase letters and I've refactored them to start with an uppercase letter.
>
> With many of the classes we've had to refactor because of poor casing of classes, Xcode will always fail to find the file in its Git repo, but only after you quit and restart Xcode.
>
> Now we're stuck with team members not able to make changes to the classes and commit them. Refactoring the classes now have lost the association between the .m and .h files so while I can refactor the class name in the @implementation to change the spelling, the class name in the header s completely ignored.
>
> Any ideas here? This is a pretty serious issue to be in a product at version 6.3
>
> Thanks in advance.
>
> Alex Zavatone
>
>
> _______________________________________________
> 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
_______________________________________________
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