(provided you use Xcode 4) What is your SVN ignore pattern? Do you have a global one or do you prefer to set it via propset?
With -F, you can specify a file that contains a list of file name patterns to ignore. For example, this was my file for my Android project: I saved this file as .svnignore, and then I did: svn propset svn:ignore -R -F .svnignore .
I didn’t think it would too difficult to get svn to ignore some files for me, but it turns out that svn really likes to pay attention to my files. Hours passed before I finally got svn to relax and ignore what I wanted it to. Below the cut, I share my newfound wisdom with you.
If you added a new subdirectory after setting svn:ignore, your new subdirectory and everything in it will not be subject your svn:ignore settings! You will have to run svn propset again. Clearly, it’s not good to set svn:ignore manually like this every time: you’re wasting time, you might make typos, you might forget to include a pattern, and if...
And the best thing is that you can commit .svnignore to your repository as well, so that you and/or your team can use it again it the future. Great power comes with great responsibility, and this is no exception.
I have the following in my ~/.subversion/config file:
global-ignores = *.o *.lo *.la .*.rej *.rej .*~ *~ .#* .DS_Store *~.nib *.mode* *.pbxuser CVS _*.java *.perspective .LSOverride *.xcuserdatad
I added the last one (*.xcuserdatad) recently for Xcode 4.
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