How to exclude VCS folders like .GIT or .SVN?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
GregS
Posts: 1
Joined: Tue Apr 04, 2017 6:43 pm

How to exclude VCS folders like .GIT or .SVN?

Post by GregS »

For example, I tried the following when specifying files:
1 <mydir>\*.* all include
2 <mydir>\.git\*.* all exclude

and yet all the files in the .git folder were still processed.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: How to exclude VCS folders like .GIT or .SVN?

Post by DataMystic Support »

Hi Greg,

Did the exclude lines come after the include lines?
dfhtextpipe
Posts: 988
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: How to exclude VCS folders like .GIT or .SVN?

Post by dfhtextpipe »

This would be better done within the main filter rather than by the Files to Process UI.

Have a top level Restrict to filenames NOT matching

Code: Select all

^.+\.GIT.+$
Note that this filter uses case-insensitive perl patterns, not DOS wildcards.

David
David
Post Reply