dulwich.ignore
module documentationdulwich
Parsing of gitignore files.
For details for the matching rules, see https://git-scm.com/docs/gitignore
Function | translate | Translate a shell PATTERN to a regular expression. |
Function | read_ignore_patterns | Read a git ignore file. |
Function | match_pattern | Match a gitignore-style pattern against a path. |
Class | Pattern | A single ignore pattern. |
Class | IgnoreFilter | No class docstring; 0/1 class methods, 3/5 methods documented |
Class | IgnoreFilterStack | Check for ignore status in multiple filters. |
Function | default_user_ignore_filter_path | Return default user ignore filter path. |
Class | IgnoreFilterManager | Ignore file manager. |
Function | _translate_segment | Undocumented |
Translate a shell PATTERN to a regular expression.
There is no way to quote meta-characters.
Originally copied from fnmatch in Python 2.7, but modified for Dulwich to cope with features in Git ignore patterns.
Parameters | f | File-like object to read from |
Returns | List of patterns |