mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
refactor: filter special_fnames to exclude existing ranked tags
This commit is contained in:
parent
1e5fdfa4be
commit
098f94d38b
1 changed files with 3 additions and 1 deletions
|
@ -506,7 +506,9 @@ class RepoMap:
|
|||
|
||||
other_rel_fnames = sorted(set(self.get_rel_fname(fname) for fname in other_fnames))
|
||||
special_fnames = filter_important_files(other_rel_fnames)
|
||||
special_fnames = [ # todo: only keep fnames which aren't in ranked_tags already
|
||||
ranked_tags_fnames = set(tag[0] for tag in ranked_tags)
|
||||
special_fnames = [
|
||||
fn for fn in special_fnames if fn not in ranked_tags_fnames
|
||||
]
|
||||
special_fnames = [(fn,) for fn in special_fnames]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue