Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions helpers/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ async def test_patterns(self, metadata: Dict[str, Any], max_files: int = 1000) -
processed_count = 0

try:
spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
spec = PathSpec.from_lines("gitignore", pattern_lines)

# Walk through base directories
for base_pattern_path, base_real_path in self.base_paths.items():
Expand Down Expand Up @@ -507,7 +507,7 @@ async def preview_restore(

if pattern_lines:
from pathspec import PathSpec
restore_spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
restore_spec = PathSpec.from_lines("gitignore", pattern_lines)

# Process each file in archive
for archive_path in archive_files:
Expand Down Expand Up @@ -663,7 +663,7 @@ async def restore_backup(

if pattern_lines:
from pathspec import PathSpec
restore_spec = PathSpec.from_lines("gitwildmatch", pattern_lines)
restore_spec = PathSpec.from_lines("gitignore", pattern_lines)

# Process each file in archive
for archive_path in archive_files:
Expand Down
2 changes: 1 addition & 1 deletion helpers/file_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def _resolve_ignore_patterns(ignore: str | None, root_abs_path: str) -> Optional
if not lines:
return None

return PathSpec.from_lines("gitwildmatch", lines)
return PathSpec.from_lines("gitignore", lines)


def _list_directory_children(
Expand Down
2 changes: 1 addition & 1 deletion plugins/_promptinclude/helpers/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _build_ignore_spec(gitignore: str) -> PathSpec | None:
]
if not lines:
return None
return PathSpec.from_lines("gitwildmatch", lines)
return PathSpec.from_lines("gitignore", lines)


def _find_matching_files(
Expand Down