Module ignore::gitignore

source ·
Expand description

The gitignore module provides a way to match globs from a gitignore file against file paths.

Note that this module implements the specification as described in the gitignore man page from scratch. That is, this module does not shell out to the git command line tool.

Structs

  • Gitignore is a matcher for the globs in one or more gitignore files in the same directory.
  • Builds a matcher for a single set of globs from a .gitignore file.
  • Glob represents a single glob in a gitignore file.

Functions