Ignore Rules

Use the following rules to ignore uncontrolled files and folders:

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

foo

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

f.tmp

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

*.tmp

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

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

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

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.

r:*.pk?