Agent Zero AI framework
refactor: replace PathSpec "gitignore" pattern type with "gitwildmatch"
frdel723225957ecb
diff --git a/helpers/backup.py b/helpers/backup.pyindex a2b9d6781..0100fdf77 100644--- a/helpers/backup.py+++ b/helpers/backup.py@@ -261,7 +261,7 @@ class BackupService:processed_count = 0try:- spec = PathSpec.from_lines("gitignore", pattern_lines)+ spec = PathSpec.from_lines("gitwildmatch", pattern_lines)# Walk through base directoriesfor base_pattern_path, base_real_path in self.base_paths.items():@@ -507,7 +507,7 @@ class BackupService:if pattern_lines:from pathspec import PathSpec- restore_spec = PathSpec.from_lines("gitignore", pattern_lines)+ restore_spec = PathSpec.from_lines("gitwildmatch", pattern_lines)# Process each file in archivefor archive_path in archive_files:@@ -663,7 +663,7 @@ class BackupService:if pattern_lines:from pathspec import PathSpec- restore_spec = PathSpec.from_lines("gitignore", pattern_lines)+ restore_spec = PathSpec.from_lines("gitwildmatch", pattern_lines)# Process each file in archivefor archive_path in archive_files:diff --git a/helpers/file_tree.py b/helpers/file_tree.pyindex acc1101d1..b08361e60 100644--- a/helpers/file_tree.py+++ b/helpers/file_tree.py@@ -502,7 +502,7 @@ def _resolve_ignore_patterns(ignore: str | None, root_abs_path: str) -> Optionalif not lines:return None- return PathSpec.from_lines("gitignore", lines)+ return PathSpec.from_lines("gitwildmatch", lines)def _list_directory_children(diff --git a/plugins/_promptinclude/helpers/scanner.py b/plugins/_promptinclude/helpers/scanner.pyindex 1dfb8a8b7..9adb83a2d 100644--- a/plugins/_promptinclude/helpers/scanner.py+++ b/plugins/_promptinclude/helpers/scanner.py@@ -131,7 +131,7 @@ def _build_ignore_spec(gitignore: str) -> PathSpec | None:]if not lines:return None- return PathSpec.from_lines("gitignore", lines)+ return PathSpec.from_lines("gitwildmatch", lines)def _find_matching_files(