Skip to main content

Module ignore

Module ignore 

Source
Expand description

.cadvmignore support: a small, dependency-free pattern matcher.

The file lives at the repository root, one pattern per line. Syntax is a deliberately small subset of the usual ignore-file conventions:

  • blank lines and lines starting with # are ignored;
  • * matches any run of characters, ? matches a single character;
  • a pattern ending in / matches a directory and everything beneath it;
  • a pattern containing / is matched against the whole repo-relative path, otherwise it is matched against the file name only;
  • a leading / anchors the pattern to the repository root.

The .cadvm directory is always ignored, independently of this file.

Structs§

IgnoreList
A compiled set of ignore patterns.

Constants§

IGNORE_FILE
Name of the ignore file at the repository root.