Skip to content

Functions

load_gitignore

Load all .gitignore files in working directory.

match

Test whether FILENAME matches pattern in .gitignore.

Parameters

NameTypeDescription
namestrFilename to match.

match_case

Test whether FILENAME matches pattern in .gitignore, including case.

Parameters

NameTypeDescription
namestrFilename to match.

filter

Construct a list from those elements of the iterable NAMES that match pattern in .gitignore.

Parameters

NameTypeDescription
namesIterable[str]A list of path names.

Not associated with or approved by Mojang Studios or Microsoft