I'm writing an iOS app that uses a versioned Core Data model.
I just very nearly released a version of the app which crashed on upgrade because I'd accidentally edited the old version as well as creating a new one.
To stop this happening again, I'd like to flag the old versions in some way that prevents any check-in that modifies those files without first removing the flag.
To make things more complicated, I'm using git-svn, so having a read-only repo as a submodule won't work.
Basically you cant.
Git will track changes done with chmod if you did not turn the flag off.
You can use some workaround to do it.
Verify in your both local & server hooks that the desired file is not part of the diff which means that it was not modified.
Since local hooks can be removed y user so you want to verify it in the server. can be done in the pre-receive or update hooks.
git update-index --assume-unchangedThis will "ignore" any local changes made to this file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With