Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn (subversion) ignore specific file types in all sub-directories, configured on root?

Tags:

svn

I have the following folder structure, and I would like for svn to ignore all eclipse files (.classpath and .project and .settings) in sub-projects

main-project/
  sub-1/.classpath
  sub-2/.classpath
  sub-3/part1/.classpath
  sub-3/part2/.classpath

Is there any way of configuring the .svn in the "main-project" to svn:ignore **/**.classpath?

So I dont have to edit it in every single sub-folder?

like image 507
Kamilski81 Avatar asked Jul 29 '11 20:07

Kamilski81


2 Answers

I believe the answer I was looking for is:

vim ~/.subversion/config

scroll down to 'global-ignores':

global-ignores = *.classpath

The answer came from here:

How can I recursively configure svn status to hide ignored files?

like image 82
Kamilski81 Avatar answered Feb 06 '23 01:02

Kamilski81


Use the --recursive (-R) flag on svn propset and set the svn:ignore so that it is applied recursively to every sub-folder:

svn propset svn:ignore -R <mask> <directory or . for current>

http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.propset.html

like image 40
manojlds Avatar answered Feb 06 '23 01:02

manojlds