Ignore Rules

Use the following rules to ignore uncontrolled files and folders:

- <folder name>

Ignores a specific folder, for example, to ignore the folder foo:

foo

- <file name>

Ignores a specific file, for example, to ignore the file f.tmp:

f.tmp

- *.<file extension>

Ignores all files with a specific extension, for example, to ignore files with the extension .tmp:

*.tmp

- r:*.<file extension>

Recursively ignores all files with a specific extension starting from the location of the current dmignore file. For example, to recursively ignore all *.tmp files in the current folder and all child folders:

r:*.tmp

- r:<folder or file name>

Recursively ignores a specific file or folder. For example, to ignore all Debug folders in the work area hierarchy, add the following rule to a .dmignore file in the work area root:

r:Debug

- :<comment>

Start a line with a colon (:) to add a comment, for example:

:This is a comment that does not affect the ignore rules

You can also add an inline comment after a rule by prefixing it with a colon, for example:

r:Debug :My comment about this rule

- c:

Clears all recursive rules inherited from parent .dmignore files. For example, if a parent ignore file includes:

r:*.xml

and you add c: to the current ignore file, then all .xml files in the current folder, and its child folders, are not ignored.

- Use the ? symbol as any single wildcard character in a file or folder name or extension. For example, to recursively ignore all work area files with extensions PK3 and PK4:

r:*.pk?