views:

5111

answers:

3

I would like TortoiseSVN (1.5.3) to ignore certain folders, their contents and certain other files wherever they might appear in my directory hierarchy but I cannot get the global ignore string right.

Whatever I do, it either adds to much or ignores too much

What is the correct 'Global ignore pattern' to ignore....

Folders : bin obj release compile 
Files   : *.bak *.user *.suo

Update: To help clarify... yes I am using this on windows.

+11  A: 
PersistenceOfVision
I found I had to add additional items for Initial Caps variations, but this works well.
Rory Becker
+1  A: 

This is one I use for .NET. Note that I use VB6 as well as other packages so there are extra entries. Also it is case sensitive.

*.chm *.dat *.dll *.ini *.err *.exe *.DLL *.INI *.ERR *.EXE *.backup *.zip *.ZIP *.vbw *.scc *.vbg *.log *.exp *.lib .vrs.SCC *.PRF *.prf *.NIP *.NOP *.nip *.nop *.out *.bjob *.job *.prt *.tmp *.txt .EX .ex *.MDP *.bak *.BAK *.CFG *.cfg *.TXT *.vrs *.VRS *.scc *.SCC *.vsc *.VSC *.mdb *.MDB *.cur *.oca *.setup *.png *.suo *.user Debug Release bin *.pdb *.trx TestResults *.WS~ *.ocx

These three proved critical in greatly reducing the number of files wildcards I had to track down.

Debug Release bin

RS Conley
+2  A: 

If you're using Windows don't you need to use an ignore pattern like this:

*/bin */obj

for directories? And maybe even:

*/bin/* */obj/*

I must admit I only realised this after I had committed the wrong things, so I haven't tried this out 'live'. Notice the use of the forward slashes in the directory pattern.

(See this link for the source: http://svn.haxx.se/tsvnusers/archive-2007-03/0281.shtml )

Ian Hopkinson