VCS Checkout Rules (root files only)

Hi

 

I am trying to checkout the files in the root only, and some subdirs.

 

(example structure)

Root - File1

Root - File2

Root - Subdir1

Root - Subdir2

 

How do i get File1, Files2 (all files in root) and Subdir1 - without having to exclude Subdir2 (have a lot of subdirs)?

 

Best regards

Morten Gjesing

0
3 comments

Hi Morten,

Instead of blacklisting, you have the option to whitelist. Simply select which directories you want, instead of the ones you don't. If both options are too long, you might want to adapt your folder structure to make it easier. Also, as the dialog points out, checkout rules only work at directory level. Rules for files won't work.

More info on checkout rules here: https://confluence.jetbrains.com/display/TCD10/VCS+Checkout+Rules

If you want to add support for wildcards in checkout rules, please vote and watch here:
https://youtrack.jetbrains.com/issue/TW-3460

0
Avatar
Permanently deleted user

Hi Denis,

I am using white list, but my problem is that i want to get files in the root directory, but not the files from the sub directories. I dont see a syntax that offers to add a directory without adding all sub directories.

/Morten

1

Hi Morten,

if wildcards were introduced, this would probably help. Other than that, you probably need to include the base directories and exclude manually all the sub directories that you don't want in.

0

Please sign in to leave a comment.