Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude Eclipse's hidden '.settings' directory from commits when using TortoiseSVN

I'm using the TortoiseSVN client and Eclipse. When I attempt to commit an Eclipse project, TortoiseSVN displays a .settings directory in the file list and says that it is un-versioned. The `.settings' directory seems to be where Eclipse keeps all of its settings for a project.

Is there a way to exclude this directory so that it is completely ignored by TortoiseSVN for this and any other Eclipse projects?

like image 398
Camsoft Avatar asked Feb 01 '10 10:02

Camsoft


2 Answers

Since you want to ignore this folder globally, you should use…a global ignore!

Take a look at the file

%APPDATA%\Subversion\config

and uncomment the global-ignores line and add .settings to it.


Sample

Sample full path for the file config:

C:\Documents and Settings\pmn\Application Data\Subversion\config

Sample new content of the global-ignores line:

global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store .settings
like image 162
Michael Hackner Avatar answered Sep 18 '22 23:09

Michael Hackner


You can exclude directories like this by right clicking on them in Windows and going to TortoiseSVN/"Delete and add to ignore list" and then specifying it in the sub-menu:

Enter image description here

This is really easy to do, I have to do it quite often.

like image 43
Kezzer Avatar answered Sep 21 '22 23:09

Kezzer