Page 1 of 1

How to ignore files?

PostPosted: Thu May 28, 2009 8:24 pm
by steward
Newbie just getting started.

(1)
In the working copy, right-click menu, the "Add to svn:ignore" option is never enabled for any file or folder.

What is the trick please?

(2)
Does the configuration file accept multiple "global-ignores" lines?
I guess I can add them in that fashion.

I am more concerned with retaining the project structure but expluding the transient content, eg

global-ignore = /my/long/and/tedious/path/to/images/*.*
global-ignore = /my/long/and/tedious/path/to/videos/*.*
global-ignore = /my/long/and/tedious/path/to/logs/*.*

Re: How to ignore files?

PostPosted: Fri May 29, 2009 10:58 am
by sorin
Hello,

steward wrote:In the working copy, right-click menu, the "Add to svn:ignore" option is never enabled for any file or folder.

What is the trick please?


Only unversioned (not added to repository) files or folders can be added to svn:ignore property.

steward wrote:Does the configuration file accept multiple "global-ignores" lines?

...

global-ignore = /my/long/and/tedious/path/to/images/*.*
global-ignore = /my/long/and/tedious/path/to/videos/*.*
global-ignore = /my/long/and/tedious/path/to/logs/*.*


The property global-ignores contains file patterns, not paths of folders and files, for example:

Code: Select all
global-ignores = *.o *.lib *.so


The option Application global ignores that is available from menu Options -> Preferences -> SVN works in the same way, that is you must specify file patterns, not file paths.


Regards,
Sorin