mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
Removed set_relative_fnames method from Coder class.
This commit is contained in:
parent
2339dd4803
commit
1fe0f713d4
1 changed files with 0 additions and 6 deletions
|
@ -64,15 +64,9 @@ class Coder:
|
||||||
)
|
)
|
||||||
self.find_common_root()
|
self.find_common_root()
|
||||||
|
|
||||||
self.set_relative_fnames()
|
|
||||||
|
|
||||||
self.pretty = pretty
|
self.pretty = pretty
|
||||||
self.show_diffs = show_diffs
|
self.show_diffs = show_diffs
|
||||||
|
|
||||||
def set_relative_fnames(self):
|
|
||||||
for fname in self.fnames:
|
|
||||||
rel_fname = os.path.relpath(fname, self.root)
|
|
||||||
self.relative_to_fname[rel_fname] = fname
|
|
||||||
def find_common_root(self):
|
def find_common_root(self):
|
||||||
common_prefix = os.path.commonprefix(list(self.fnames))
|
common_prefix = os.path.commonprefix(list(self.fnames))
|
||||||
self.root = os.path.dirname(common_prefix)
|
self.root = os.path.dirname(common_prefix)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue