Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN ignore pattern with Xcode 4

Tags:

xcode

svn

(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?

like image 215
Cocoanetics Avatar asked Jun 24 '11 22:06

Cocoanetics


People also ask

How do I ignore a specific file pattern in SVN?

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 .

Does SVN like to pay attention to your files?

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.

What happens if I add a new subdirectory after setting SVN ignore?

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...

Should I commit svnignore to my repository?

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.


1 Answers

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.

like image 171
mani Avatar answered Sep 30 '22 18:09

mani