I have a Subversion project, and I want to ignore almost all dll
files. The only dll
s I do not want to ignore are any within folders named "External References".
How do I do this?
I have a Subversion project, and I want to ignore almost all dll
files. The only dll
s I do not want to ignore are any within folders named "External References".
How do I do this?
You need to set special SVN property for those directories where you need to ignore these files. In directories where you need to ignore all .dll files - use this extension. In directories where some files need to be ignored - use their names.
To ignore all .dll files within the current folder:
svn propset svn:ignore '*.dll' .
To ignore some .dll files within the current folder fill the text file and apply:
echo a1.dll > svnignore.txt
echo a2.dll >> svnignore.txt
svn propset svn:ignore -F svnignore.txt .
And after that don't forget to commit changes:
svn commit -m "Ignore some .dll"
Note that it will clear all previous svn:ignore properties set for these folders if any (in this case you should use svn propedit).
If you have a lot of folders on the same level as "External References" and you want to ignore everywhere except this particular folder, just loop through dirs excluding this one and set this property. E.g. for linux (from parent dir):
for d in `ls -Ad | grep -v "External References"`; do svn propset svn:ignore '*.dll' $d; done;