fix: add missing respect_gitignore parameter to _find_with_ffind method

Fixed NameError where respect_gitignore was undefined when _find_with_ffind
falls back to _find_with_python. Added the parameter to method signature
and updated the method call to pass it correctly.
This commit is contained in:
2025-07-27 19:09:37 -05:00
parent a76b6365ab
commit 04da228bc7
@@ -257,7 +257,7 @@ class FindTool(BaseTool):
# Use ffind for fast file discovery
matches = await self._find_with_ffind(
pattern, root_path, type, case_sensitive, regex,
max_depth, follow_symlinks, ignore_patterns
max_depth, follow_symlinks, respect_gitignore, ignore_patterns
)
else:
# Fall back to Python implementation
@@ -394,6 +394,7 @@ class FindTool(BaseTool):
regex: bool,
max_depth: Optional[int],
follow_symlinks: bool,
respect_gitignore: bool,
ignore_patterns: Set[str]) -> List[FileMatch]:
"""Use ffind for fast file discovery."""
matches = []