From f52bf85161d585aa0acf4abb80f849e63e358771 Mon Sep 17 00:00:00 2001 From: Vladimir Chebotarev Date: Sun, 28 Aug 2022 19:49:16 +0300 Subject: [PATCH] Draft. --- gitignorefile/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gitignorefile/__init__.py b/gitignorefile/__init__.py index 42387ba..13f3ccd 100644 --- a/gitignorefile/__init__.py +++ b/gitignorefile/__init__.py @@ -45,6 +45,9 @@ def __call__(self, path, is_dir=None): if parent_gitignore.isfile(): with open(str(parent_gitignore)) as f: matches = pathspec.PathSpec.from_lines("gitwildmatch", f) + for p in matches.patterns: + print(p.regex) + assert False add_to_children[parent] = ((matches, parent), plain_paths) plain_paths = []