mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-27 15:55:00 +00:00
feat: Add git_ignored_file method to check files against gitignore
This commit is contained in:
parent
ea1a4ecdc6
commit
218623be28
3 changed files with 17 additions and 0 deletions
|
@ -331,6 +331,12 @@ class GitRepo:
|
|||
lines,
|
||||
)
|
||||
|
||||
def git_ignored_file(self, path):
|
||||
if not self.repo:
|
||||
return
|
||||
if self.repo.ignored(path):
|
||||
return True
|
||||
|
||||
def ignored_file(self, fname):
|
||||
self.refresh_aider_ignore()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue