You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Wire up --only-changed flag
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user