class documentation
class IgnoreFilterManager:
Constructors: IgnoreFilterManager.from_repo(repo), IgnoreFilterManager(top_path, global_filters, ignorecase)
Ignore file manager with Git-compliant behavior.
Important: When checking if directories are ignored, include a trailing slash. For example, use is_ignored("dir/") instead of is_ignored("dir").
| Class Method | from |
Create a IgnoreFilterManager from a repository. |
| Method | __init__ |
Initialize an IgnoreFilterManager. |
| Method | __repr__ |
Return string representation of IgnoreFilterManager. |
| Method | find |
Find matching patterns for path. |
| Method | is |
Check whether a path is explicitly included or excluded in ignores. |
| Method | _apply |
Apply directory traversal rule for issue #1203. |
| Method | _load |
Undocumented |
| Instance Variable | _global |
Undocumented |
| Instance Variable | _ignorecase |
Undocumented |
| Instance Variable | _path |
Undocumented |
| Instance Variable | _top |
Undocumented |
Create a IgnoreFilterManager from a repository.
| Parameters | |
repo:Repo | Repository object |
| Returns | |
IgnoreFilterManager | A IgnoreFilterManager object |
Initialize an IgnoreFilterManager.
| Parameters | |
topstr | The top-level directory path to manage ignores for. |
globallist[ | List of global ignore filters to apply. |
ignorecase:bool | Whether to perform case-insensitive matching. |