[Templates] How do I ignore .svn directories?
Womble
womble@zaniyah.org
Mon, 14 Aug 2006 12:38:44 +0100
Nigel Metheringham wrote:
> On Mon, 2006-08-14 at 08:30 +0100, Andy Wardley wrote:
>
>> David Dyer-Bennet wrote:
>>
>>> I've just moved a web site built with TT over to a Subversion source
>>> code repository, and I noticed that it's now looking at all the files
>>> in the .svn directories.
>>>
>> I'm guessing that you're using ttree here? In which case, this config
>> option should do it:
>>
>> ignore = \b(CVS|RCS|svn)\b
>>
>
> I had real problems persuading ttree to ignore the .svn directories -
> none of the basic pattern matches seemed to do it right. I ended up
> with this rule (to ignore all files/directories that start with a . -
> for some reason I needed to match the preceding path too)
>
> ignore = ^(?:.*/)?\..*
>
>
> Nigel.
I found that
ignore = \.svn$
did the job for me.