Wire up --only-changed flag

This commit is contained in:
Mc-muffin
2024-11-30 09:31:59 -05:00
parent 880795d239
commit cb6ce84ad6

View File

@@ -474,6 +474,9 @@ class ToolsTOR(ToolsTales):
return theirsce
def get_changed_targets(self, target_files: list[tuple[Path, Path, Path]]) -> list[tuple[Path, Path, Path]]:
if not self.changed_only:
return target_files
changed: list[tuple[Path, Path, Path]] = list()
for o, t, s in target_files:
t_mod_time = os.path.getmtime(t)