Relevant_Masks Initialization Variable

See Also

Sets the VSS Add command mask.

Syntax

Relevant_Masks = masks

Example

Restricts the Add command to files with the extensions .c, .h, or none:

Relevant_Masks = *.C, *.H, *.

Restricts the Add command to all files except those with the extension .obj:

Relevant_Masks = !*.OBJ

Remarks

A typical VSS working folder contains a number of important code files that are in the VSS project, and a number of unimportant intermediate files that are not in the project. For instance, in a C directory, the .c and .h files contain the code; the .obj files, which are byproducts of the process, are not placed in the project.

Relevant_Masks indicates which files you would typically place into a project. This does not prevent you from placing other files into the project; however, it does have several potentially useful effects.

First, if you add an entire directory into VSS in one command (by typing ss add * on the VSS command line, or dragging a directory from File Manager into VSS), only files matching the relevant masks are added. Other files can then be added individually.

Second, when you run the VSS Show Differences command on a project level to compare the current project to your working directory, files that do not match the relevant masks are not displayed as differences.

Finally, the relevant masks are used as the default option in the Add Files of Type combo box in the Add Files dialog box; therefore, by default, only these files are displayed.

You can also set this variable in your SS.INI file by using the File Types tab in the SourceSafe Options dialog box.