开发者

Subversion Ignore Pattern not working too well

I've got the following pattern for my global ignore开发者_运维百科 pattern:

*.pdb *.suo *.user *.cache */_ReSharper */bin */obj *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store

resharper folders for example (_ReSharper.SubtextSolution) are still being committed as well as some other folders such as bin for some reason.

I'd also be interested to see what others have as their global ignore pattern. Not that everyone's will apply specifically to my environment but would still be helpful to see a few regardless....specifically related to .NET environments that is.


I posted this as a response to a similar question, by in addition to the default TortoiseSVN global ignores I add the following:

.suo *.user bin obj *.pdb *.cache *_svn *.svn *.suo *.user *.build-res TestResults _ReSharper*

You don't need the / values in there. Especially since the _Resharper folders tend to get added at the root (at least for me).


Try using *ReSharper* in your ignore settings for ignoring all ReSharper files. Also, for ignoring the bin and obj folders, I always use [Bb]in and [Oo]bj.


Here is my personal experience :

  • previously commited files will keep being committed if you added the ignore pattern later (you'll have to svn-delete them explicitly)
  • in tortoise svn, you should put 1 ignore pattern per line


Heres my 2 cents...

*.o .lo .la ## ..rej .rej .~ ~ .# .DS_Store thumbs.db Thumbs.db *.bak *.class *.exe *.dll *.mine *.obj *.ncb *.lib *.log *.idb *.pdb *.ilk .msi .res *.pch *.suo *.exp .~ .~ ~. cvs CVS .CVS .cvs .datasource release Release debug Debug ignore Ignore bin Bin obj Obj [Bb]in [Oo]bj *.csproj.user *.user ReSharper. *.resharper.user *.g.vb *.g.cs *.baml *.GenerateResource.Cache *.cache *.xap

This covers WPF/Silverlight, WCF and Resharper along with all the usual gubbins.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜